Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
905
Ribbon not showing tabs or graphics when used in Silverlight Business Application
posted

I’m having several issues with XamRibbon
One of the easiest to demonstrate:

1.)  Create a new Silverlight 4.0 Business Application

2.)  Take “ApplicationMenu2010.xaml” from the IG samples browser, and drop it in About.xaml as the last control of the StackPanel following the “Text="About page content"/>”
such as <Views:ApplicationMenu2010 />
(also bring in the associated resource files RibbonStrings.resx, and create a reference to Infragistics.Samples.Silverlight.Resources.LOB.dll)

3.)  Notice the tabs and graphics do not show

4.)  Remove the ScrollViewer, StackPanel, and TextBlock controls from the About.xaml, leaving:
<Grid x:Name="LayoutRoot">
    <Views:ApplicationMenu2010 />
</Grid>

5.)  Notice the tabs and graphics are now showing


I’m also having some real issues with exceptions being thrown clear out to the HTML web page, getting trapped in the javascript function: onSilverlightError()

These exceptions are apparently being thrown from within IG assemblies

I am unable to trap/breakpoint the exception in app.xaml.cs at: Application_UnhandledException():

Error: Unhandled Error in Silverlight Application
Code: 4009   
Category: ManagedRuntimeError      
Message: Element is already the child of another element.    


This usually occurs when selecting the “Office2010ApplicationMenuTabTool”, but also occurs when setting the tabs visibility to collapsed or visible

I could use some help here as to the best way to trap this exception from within a debug session

I have a demo of the first issue described above, but am unable to upload the sample code due to upload size restrictions (will this ever be addressed?)

Thank you!