ApplicationMenu binding ItemsSource and using ItemTemplateSelector

Ribbon for WPF Forum

Posted 11 years ago by Ben Johnson
Version: 13.1.0581
Avatar

I have an ApplicationMenu that I'm binding the ItemsSource to an ObservableCollection and I know that the binding is happening correctly because I see an item in the menu for each item in the list however it seems that setting the ItemTemplateSelector is having no effect.

 

<ribbon:ApplicationMenu ItemsSource="{Binding MenuItems}"
                        ItemTemplateSelector="{StaticResource AppMenuTemplateSelector}"/>

 The breakpoint in the template selector is never hit.

Ben

Comments (2)

Posted 11 years ago by Ben Johnson
Avatar

Does ItemTemplateSelector not work for ApplicationMenu items?

[Modified 11 years ago]

Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Ben,

Sorry but ItemTemplateSelector won't work here.  You'd need to set the ItemsSource directly to the list of controls to put in the app menu.


Actipro Software Support

The latest build of this product (v24.1.1) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.