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
40
ApplicationMenu Binding
posted

I am evaluating the WPF Ribbon control, and am trying to bind the ApplicationMenu to a collection, like this:

<igRibbon:ApplicationMenu ItemsSource="{Binding AuthorizedApplications}" ItemTemplate="{StaticResource ApplicationMenuItemTemplate}"/>

Where the ApplicationMenuItemTemplate is defined in the Window.Resources like so:

<DataTemplate x:Key="ApplicationMenuItemTemplate">

<igRibbon:ButtonTool Caption="{Binding Name}" SmallImage="{Binding SmallImagePath}" />

</DataTemplate>

No matter what I put in the DataTemplate (even If I put in a dummy ButtonTool, with a hard-coded Caption), the application Menu contains the output of the ToString() for each element in the collection.  (Which is the Type of the element).  It is the behavior I would expect if I didn't specify the ItemTemplate.

Any Ideas, why the ItemTemplate (or the reference to it) is not working?

Thanks