This article describes how to bound menu and their sub menu items using ItemsSource in SfMenu Control.
Use HierarchicalDataTemplate instead of DataTemplate to set ItemTemplate property of SfMenu control, because DataTemplate cannot render hierarchical data and binding the Menu and Submenu Items by using ItemsSource property.
The following code example demonstrates the same.
The Output for the above code is shown below:
This page will automatically be redirected to the sign-in page in 10 seconds.