Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
405
How to get all child XamMenuItems from a parent
posted

My menu is created from bound hierarchical data.

If I have a XamMenuItem instance how do I get the collection of all its child XamMenuItems? In my case if I have a XamMenuItem, called mi for example, if I do a mi.Items[0] and inspect what type is returned, it is the type of my bound hierarchical data not a XamMenuItem as I expected it to be. How do I get the collection of XamMenuItem children?

Thanks,

Pat