Silverlight Navigation menu
-
Hi, At present I am using an xml file to retrieve data for menu (Navigation of pages). The xml looks like the following. Question: How can I make the menu to show sub menus i.e. menu within a menu? Thanks
...
Converter
/UserControls/Converter.xamlPage1 view
/Views/Page1.xamlTest Page
/Views/Test.xaml...
-
Hi, At present I am using an xml file to retrieve data for menu (Navigation of pages). The xml looks like the following. Question: How can I make the menu to show sub menus i.e. menu within a menu? Thanks
...
Converter
/UserControls/Converter.xamlPage1 view
/Views/Page1.xamlTest Page
/Views/Test.xaml...
Just have menu levels in your xml file.
<Navigation>
<item>Converter</item>
<tag>/UserControls/Converter.xaml</tag>
sub level
sub level
</Navigation>
<Navigation>
<item>Page1 view</item>
<tag>/Views/Page1.xaml</tag>
</Navigation>
<Navigation>
<item>Test Page</item>
<tag>/Views/Test.xaml</tag>
</Navigation>Too much of heaven can bring you underground Heaven can always turn around Too much of heaven, our life is all hell bound Heaven, the kill that makes no sound
-
Just have menu levels in your xml file.
<Navigation>
<item>Converter</item>
<tag>/UserControls/Converter.xaml</tag>
sub level
sub level
</Navigation>
<Navigation>
<item>Page1 view</item>
<tag>/Views/Page1.xaml</tag>
</Navigation>
<Navigation>
<item>Test Page</item>
<tag>/Views/Test.xaml</tag>
</Navigation>Too much of heaven can bring you underground Heaven can always turn around Too much of heaven, our life is all hell bound Heaven, the kill that makes no sound
-
Yes, but how do I make it appear on the UI? At present, I just read the item and tag of the xml file. Does this mean that if I also read the FirstLevel element, then it will automatically show up in the UI and a sub level menu? Thanks