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

Parents
No Data
Reply
  • 35319
    posted

    Hi Pat,

     

    I have been looking into your post and you can access the children collection of a XamMenuItem using the underlying data. I am attaching a sample application(XamMenuChildren.zip) that demonstrates my approach.

     

    Let me know, if you need any further assistance on this matter.

     

    XamMenuChildren.zip
Children