I have a ContextMenu
that uses a CompositeCollection
for its ItemsSource. One of the items (the one that is in a bound collection, as opposed to hard-coded) is displayed differently from the rest.
I didn't see anything obvious in the XAML as to why this is, so I thought I would use Snoop to look at the actual rendered style (and find the difference). However, whenever I activate the Snoop window to look for the Context Menu, it closes the menu!
Is there a way to use Snoop (or a similar tool) to inspect a ContextMenu
?
Whenever user performs any action outside of an opened ContextMenu
will get closed. This is default behaviour of the ContextMenu
, But still Snoop
provides all the informations about the ContextMenu
and it's MenuItems
in the VisualTreeView of the Snoop window on Left side. If you want to snoop a specift ContextMenuItem
ContextMenuItem
you want to snoop which shows a Red border. Also the same control will be selected in the Treeview of the Snoop windowIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With