I am trying to create navigation inside a listbox menu. I load data from xml to populate a list. Each item in the list box should be a link or button. Then, I create a frame to load xaml pages in it. I tested to load pages employing button control, outside listbox with on click event and it worked well. However, I cannot make it work with list box items. I am hoping to get help from you. Any sample or ideas are highly appreciated.
Below is the code:
XAML:
|
XML:
|
C# to initiate a click o n listbox item and get the path to page:
|
Thank you in advance.
Replies
Know the answer? Post it — somebody with the same question will find it here.