I know ContextMenu
s aren't part of the visual tree, but I've been trying to bind the Visibility
property of a ContextMenu
to a property on its parent UserControl
. So far I've tried ancestor binding and experimented with a converted, but the only way that seems remotely feasible at the minute is to use a MultiValueConverter
and reflection to pass the type names and property names on the UserControl
. Even then I'm not sure it would work.
Am I going about this the wrong way?