WINDOWS FORM

FELIPEDRONI 04/04/2012 17:41:20
#399141
Bom dia, boa tarde e boa noite...
na imagem é o erro que me retorna, meu código no form esta assim:

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Dim host As System.Windows.Forms.Integration.ElementHost = New System.Windows.Forms.Integration.ElementHost
[ô]Dim uc1 As RibbonWindow = New RibbonWindow
Dim uc1 As UserControl1 = New UserControl1
host.Dock = DockStyle.Top
host.Child = uc1
Me.Controls.Add(host)


End Sub

o meu código no usercontrol(WPF) esta assim:
<UserControl x:Class=[Ô]UserControl1[Ô]
xmlns:ribbon=[Ô]clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary[Ô]
xmlns=[Ô]http://schemas.microsoft.com/winfx/2006/xaml/presentation[Ô]
xmlns:x=[Ô]http://schemas.microsoft.com/winfx/2006/xaml[Ô]
xmlns:mc=[Ô]http://schemas.openxmlformats.org/markup-compatibility/2006[Ô]
xmlns:d=[Ô]http://schemas.microsoft.com/expression/blend/2008[Ô]
mc:Ignorable=[Ô]d[Ô]
d:DesignHeight=[Ô]300[Ô] d:DesignWidth=[Ô]300[Ô]>
<Grid>
<ribbon:RibbonWindow>
<ribbon:Ribbon>

</ribbon:Ribbon>
</ribbon:RibbonWindow>
</Grid>


</UserControl>

funcionava até eu usar a tag <ribbon:RibbonWindows>

Desde já agradeço a ajuda
LUCASVAZ 04/06/2012 11:36:43
#403454
Posta o arquivo em anexo para podermos debugalo.
Tópico encerrado , respostas não são mais permitidas