Update for Silverlight v4

Apr 20, 2010 at 9:22 PM

I have tried to use the control in Silverlight v4, but I do get an error message:

Line: 54
Error: Unhandled Error in Silverlight Application
Code: 2511   
Category: ParserError      
Message: The property 'System.Windows.Controls.Panel.Children' is set more than once.    
File:     
Line: 46    
Position: 129    

Will there be an update for v4?

Thankx, Cheers Harry

Apr 26, 2010 at 7:13 AM

I am facing the same issue. Please advise.

Jun 11, 2010 at 6:06 PM

the same error with me.

Jun 11, 2010 at 6:39 PM

has fix this error.

in the generic.xaml file,  line 34:

<Canvas.Resources>      

..............................................................                     

 </Canvas.Resources>

Put the code to under line 13:

 <Canvas x:Name="RibbonLayoutRoot" Background="#D0D4DD" Width="{TemplateBinding Width}" Height="140" Canvas.Left="-5000" Canvas.Top="-5000">

//Here

<Canvas.Resources>      

..............................................................                     

 </Canvas.Resources>

 

then it can work in sl4.

 

Jul 1, 2010 at 12:29 PM

That worked perfectly. Thanks for posting that solution.

Sep 20, 2010 at 2:35 PM

Just to clear up for other people:

In Themes/generic.xaml on line 34 move the code block

<Canvas.Resources>

......

</Canvas.Resources>

To line 13.

Nov 10, 2010 at 3:49 PM

Thanks so much to whomever tracked this down initially.  I had fixed it a long time ago, then abandoned the SL4 port of our app, and when I picked it up again I had forgotten what I'd done, so kudos to you and thanks for saving me a LOT of time!  :-)