Hi,
I have collection which gets generated dynamically. I am able to bind the Parent value to the context menu, i.e. the Parent can be seen in the Context Menu, but it's child is not getting displayed.
Is there a way to generate Hierarchical Context Menu dynamically.
Thanks,
Sachin.
Hello Sachin,
I am just checking if my last reply was helpful for you.
If you require any further assistance please do not hesitate to ask.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
In order to display the child menu items you can create HierarchicalDataTemplate for the XamContextMenu. I have created a sample application that demonstrates how you can set the ItemsSource of a XamContextMenu to an ObservableColleciton and set its ItemTemplate and HierarchicalDataTemplate properties in order to display the Hierarchical data.
If you have any further questions please do not hesitate to ask.