Click here to Skip to main content
15,885,896 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,


I have menu control i have to nagivate different pages using menu control, menu items bound from database can u guide me or send snippets
Posted

1 solution

What you can do is create a Menu in XAML and name it something which you can refer to. In the code behind, you can create MenuItem as per your database records. And set the tag to identify what the MenuItem is - lets suppose you assign ID of the record to it. Handle the Click event of it and get the ID which is stored in it using the sender object and casting it into MenuItem. Then use the proper cases for which page to navigate etc.

For more information on MenuItem, check it out here.[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900