Hi ,
Can anyone help me how to fix this error..?
Parser internal error: Object writer 'xClassNotDerivedFromElement'.
This error dispalys when i execute line below (Silverlight 4)
myContent.Content = New SilverlightApplication1.MainPage
Here I am Trying to load a file MainPage.xaml (c# file) from file test.xaml(.net file) using content holder
as below
<ContentControl x:Name="myContent" HorizontalAlignment="Center" Height="554" Width="576" >
<ContentControl.Content >
SilverlightApplication1.MainPage
</ContentControl.Content>
</ContentControl>
Both files MainPage.xaml(c# file) and test.xaml(.net file) are under one solution SilverlightApplication1
Thanking you.
Chethana