I have a WPF ListView control with a ContextMenu written in XAML Code. With every right-click on the ListView the ContextMenu is shown even when there are no items in the ListView.
This is a behavior I don't want. The ContextMenu should only open if there are items in the ListView. I have no problem counting the items but I don't find the right event to suppress the ContextMenu.
How can I do that?