[Moonlight-list] DataGrid ??

A.M. Abdelaziz amamh3 at gmail.com
Mon Jan 25 11:07:18 EST 2010


I have found the cause of the problem I think, but unfortunately I don't
have time now, I'll give the details later

On Mon, Jan 25, 2010 at 5:26 PM, A.M. Abdelaziz <amamh3 at gmail.com> wrote:

> Hello,
> I have OpenSUSE 11.2 GNOME
>
> mono, gtk-sharp,
> libmoon0 and devel, moonlight-desktop and devel, moonlight-web-devel,
> moonlight-tools
>
> all mono stuff from official mono stable repo not from default opensuse
> repos
> mono is 2.6
> moonlight stuff is 2.0-1.1
>
> I'm trying to use a MoonlightHost inside my GTK window, I managed to do
> that, but when I tried to add a DataGrid element to the XAML file as
> follows:
>
>    - add a reference to System.Windows.Controls and
>    System.Windows.Controls.Data
>    - add *
>    xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
>    *
>    - add a DataGrid element like :* <data:DataGrid* IsReadOnly="true"
>    AutoGenerateColumns="true" />
>
> but when I run, I see moonlight runtime can't load the DataGrid type from
> the Controls.Data assembly (note the first error message):
>
> *ManagedXamlLoader::LookupObject: GetType (DataGrid) failed using
> assembly:
>  (clr-namespace:System.Windows.Controls;assembly:System.Windows.Controls.Data,
> System.Windows.Controls.DataGrid).*
>
> Unhandled Exception: System.Windows.Markup.XamlParseException: *Unable to
> resolve managed type DataGrid.*
>   at Mono.NativeMethods.xaml_loader_create_from_string (IntPtr instance,
> System.String xaml, Boolean create_namescope, Mono.Kind& element_type, Int32
> flags) [0x00023] in
> /usr/src/packages/BUILD/moonlight-2.0/class/System.Windows/Mono/GeneratedPInvokes.cs:2459
>   at Mono.Xaml.XamlLoader.CreateFromString (System.String xaml, Boolean
> createNamescope, Boolean validateTemplates, Boolean import_default_xmlns,
> Mono.Kind& kind) [0x00030] in
> /usr/src/packages/BUILD/moonlight-2.0/class/System.Windows/Mono/XamlLoaderCallbacks.cs:276
>   at Mono.Xaml.XamlLoader.CreateFromString (System.String xaml, Boolean
> createNamescope, Boolean validateTemplates, Mono.Kind& kind) [0x00000] in
> /usr/src/packages/BUILD/moonlight-2.0/class/System.Windows/Mono/XamlLoaderCallbacks.cs:260
>   at Mono.Xaml.ManagedXamlLoader.CreateObjectFromString (System.String
> xaml, Boolean createNamescope, Boolean validateTemplates) [0x00016] in
> /usr/src/packages/BUILD/moonlight-2.0/class/System.Windows/Mono/ManagedXamlLoader.cs:108
>   at Mono.Xaml.ManagedXamlLoader.CreateObjectFromString (System.String
> xaml, Boolean createNamescope) [0x00000] in
> /usr/src/packages/BUILD/moonlight-2.0/class/System.Windows/Mono/ManagedXamlLoader.cs:94
>   at Moonlight.Gtk.MoonlightHost.CreateElementFromString (System.String
> xaml, Boolean createNamescope) [0x00017] in
> /usr/src/packages/BUILD/moonlight-2.0/gtk/Moonlight.Gtk/MoonlightHost.cs:195
>   at Moonlight.Gtk.MoonlightHost.LoadXaml (System.String xaml) [0x0001e] in
> /usr/src/packages/BUILD/moonlight-2.0/gtk/Moonlight.Gtk/MoonlightHost.cs:137
>   at Moonlight.Gtk.MoonlightHost.LoadXamlFromFile (System.String file)
> [0x00011] in
> /usr/src/packages/BUILD/moonlight-2.0/gtk/Moonlight.Gtk/MoonlightHost.cs:160
>   at gtkmoon1.MoonHost.InitializeComponent () [0x00000] in
> /home/amamh/labs/monodevelop/gtkmoon1/gtkmoon1/MoonHost.cs:66
>   at gtkmoon1.MoonHost..ctor () [0x00011] in
> /home/amamh/labs/monodevelop/gtkmoon1/gtkmoon1/MoonHost.cs:29
>   at gtkmoon1.MainWindow..ctor () [0x0000d] in
> /home/amamh/labs/monodevelop/gtkmoon1/gtkmoon1/MainWindow.cs:19
>   at gtkmoon1.Application.Main (System.String[] args) [0x00011] in
> /home/amamh/labs/monodevelop/gtkmoon1/gtkmoon1/Application.cs:16
> Could not parse element DataGrid, attribute (null), error: *Unable to
> resolve managed type DataGrid*.
>
>
>
> I can see the DataGrid class in the assembly browser, what is wrong??
>
> --
> A.M. Abdelaziz
>



-- 
A.M. Abdelaziz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/moonlight-list/attachments/20100125/4de714ad/attachment-0001.html 


More information about the Moonlight-list mailing list