Here is my specific problem: Xaml: <local:ShrinkableContentControl x:Name=\"m_ShrinkableContentControl\">
How do I extract the parent container of a ListBoxItem? In the following example I can go till the ListBoxItem, higher than that I get Nothing:
开发者_C百科I want to hook my control\'s visual parent\'s events.You can override the OnVisualParentChanged() method to be notified when ever your visual parent changes.
I know ContextMenus aren\'t part of the visual tree, but I\'ve been trying to bind the Visibility property of a ContextMenu t开发者_如何学运维o a property on its parent UserControl. So far I\'ve tried