Hi.
I want to build the structure of my SfMenu-control based on a View-Model and binding. This works fine as long as I have a "flat" menu without sub-elements. Is there a way to bind to a structure holding also sub-menu-items.
Current idea would be something like this:
ViewModel:
public ObservableCollection<MyMenuItemClass> MenuItems {get; set;}
MyMenuItemClass:
public string MenuHeader {get; set; }
public ObservableCollection<MyMenuItemClass> SubMenuItems {get; set;}
But of course the binding does not automatically recognize the MenuItems. Also tried to add binding within the ItemContainerStyle and the ItemsSource property. But this does not work.
Any suggestions?
Best regards, Gernot