Thibaut Barrère
2008-Apr-09 22:11 UTC
[Ironruby-core] AG_E_PARSER_BAD_TYPE when using Grid
Hi again, I get a XamlException with error AG_E_PARSER_BAD_TYPE whenever I use a Grid control inside the Xaml (even with an Expression Blend generated Xaml file). Is the Grid control currently supported when working with IronRuby ? -- Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20080410/1840c336/attachment.html
Ivan Porto Carrero
2008-Apr-09 22:17 UTC
[Ironruby-core] AG_E_PARSER_BAD_TYPE when using Grid
You need to change the namespace of the xaml file probably. Expression blend generates xaml for WPF not Silverlight. I used the grid control in my digg client.. so i guess it works fine :) On Thu, Apr 10, 2008 at 10:11 AM, Thibaut Barr?re <thibaut.barrere at gmail.com> wrote:> Hi again, > > I get a XamlException with error AG_E_PARSER_BAD_TYPE whenever I use a > Grid control inside the Xaml (even with an Expression Blend generated Xaml > file). > > Is the Grid control currently supported when working with IronRuby ? > > -- Thibaut > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20080410/73f08453/attachment-0001.html
Jimmy Schementi
2008-Apr-09 23:11 UTC
[Ironruby-core] AG_E_PARSER_BAD_TYPE when using Grid
Are you using the Blend 2 Preview for Silverlight? If not, grab it from Silverlight.net. If you are, then can you send me what your XAML looks like? I suspect that the root element of your XAML has x:Class set incorrectly for Ruby. If Grid is your root ... app.xaml <Grid x:Class=?System.Windows.Controls.Grid? ...> </Grid> app.rb System::Windows::Application.current.load_root_visual Grid.new, ?app.xaml? ~js From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Wednesday, April 09, 2008 3:18 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] AG_E_PARSER_BAD_TYPE when using Grid You need to change the namespace of the xaml file probably. Expression blend generates xaml for WPF not Silverlight. I used the grid control in my digg client.. so i guess it works fine :) On Thu, Apr 10, 2008 at 10:11 AM, Thibaut Barr?re <thibaut.barrere at gmail.com<mailto:thibaut.barrere at gmail.com>> wrote: Hi again, I get a XamlException with error AG_E_PARSER_BAD_TYPE whenever I use a Grid control inside the Xaml (even with an Expression Blend generated Xaml file). Is the Grid control currently supported when working with IronRuby ? -- Thibaut _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20080409/fb52ca83/attachment.html
Thibaut Barrère
2008-Apr-10 02:05 UTC
[Ironruby-core] AG_E_PARSER_BAD_TYPE when using Grid
Hi, the root element had x:Class set incorrectly to x:Class="GridSample.Page". Chaning it to "System.Windows.Controls.Grid" solved the issue. thanks! -- Thibaut 2008/4/10, Jimmy Schementi <Jimmy.Schementi at microsoft.com>:> > > > > Are you using the Blend 2 Preview for Silverlight? If not, grab it from Silverlight.net. > > > > If you are, then can you send me what your XAML looks like? I suspect that the root element of your XAML has x:Class set incorrectly for Ruby. If Grid is your root ... > > > > app.xaml > > <Grid x:Class="System.Windows.Controls.Grid" ...> > > </Grid> > > > > app.rb > > System::Windows::Application.current.load_root_visual Grid.new, "app.xaml" > > > > ~js > > > > > > > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero > Sent: Wednesday, April 09, 2008 3:18 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] AG_E_PARSER_BAD_TYPE when using Grid > > > > > You need to change the namespace of the xaml file probably. > Expression blend generates xaml for WPF not Silverlight. > > > I used the grid control in my digg client.. so i guess it works fine :) > > > On Thu, Apr 10, 2008 at 10:11 AM, Thibaut Barr?re <thibaut.barrere at gmail.com> wrote: > > Hi again, > > I get a XamlException with error AG_E_PARSER_BAD_TYPE whenever I use a Grid control inside the Xaml (even with an Expression Blend generated Xaml file). > > Is the Grid control currently supported when working with IronRuby ? > > -- Thibaut > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >
Jimmy Schementi
2008-Apr-10 02:17 UTC
[Ironruby-core] AG_E_PARSER_BAD_TYPE when using Grid
Great! In general, make sure that the x:Class of your XAML matches the type of the first argument you pass into load_root_visual. ~js> -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Thibaut Barr?re > Sent: Wednesday, April 09, 2008 7:05 PM > To: ironruby-core at rubyforge.org > Subject: Re: [Ironruby-core] AG_E_PARSER_BAD_TYPE when using Grid > > Hi, > > the root element had x:Class set incorrectly to > x:Class="GridSample.Page". > > Chaning it to "System.Windows.Controls.Grid" solved the issue. > > thanks! > > -- Thibaut > > 2008/4/10, Jimmy Schementi <Jimmy.Schementi at microsoft.com>: > > > > > > > > > > Are you using the Blend 2 Preview for Silverlight? If not, grab it > from Silverlight.net. > > > > > > > > If you are, then can you send me what your XAML looks like? I suspect > that the root element of your XAML has x:Class set incorrectly for > Ruby. If Grid is your root ... > > > > > > > > app.xaml > > > > <Grid x:Class="System.Windows.Controls.Grid" ...> > > > > </Grid> > > > > > > > > app.rb > > > > System::Windows::Application.current.load_root_visual Grid.new, > "app.xaml" > > > > > > > > ~js > > > > > > > > > > > > > > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core- > bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero > > Sent: Wednesday, April 09, 2008 3:18 PM > > To: ironruby-core at rubyforge.org > > Subject: Re: [Ironruby-core] AG_E_PARSER_BAD_TYPE when using Grid > > > > > > > > > > You need to change the namespace of the xaml file probably. > > Expression blend generates xaml for WPF not Silverlight. > > > > > > I used the grid control in my digg client.. so i guess it works fine > :) > > > > > > On Thu, Apr 10, 2008 at 10:11 AM, Thibaut Barr?re > <thibaut.barrere at gmail.com> wrote: > > > > Hi again, > > > > I get a XamlException with error AG_E_PARSER_BAD_TYPE whenever I use > a Grid control inside the Xaml (even with an Expression Blend generated > Xaml file). > > > > Is the Grid control currently supported when working with IronRuby ? > > > > -- Thibaut > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core