Hello,
Why can't you do it public or at least protected? Sometimes there are situations when it's necessary. Just like my situation :)
Can I ask you to tell us more about what your scenario is that requires access to ParentXamMenu?
That would really be the most helpful to us so that we can make sure any change we make will solve your problem.
Devin
Hi,
Thank you for replies.
2 Darrell
Yes getter would be enough. I don't think somebody wants to set a parent menu for the menu item.
2 Marin:
Thank you for the workaround. Hopefully it's going to be only temporary because I think changing internal to public would be better solution for this :)
Hi,It is easy to get the parent menu:public static XamMenu GetParentMenu(XamMenuItem menuItem){ while (menuItem != null) { XamMenu menu = menuItem.Parent as XamMenu; if (menu != null) return menu; menuItem = menuItem.ParentXamMenuItem; } return null;}Regards,Marin
Would you be looking for getter access or for get/set access?