ContextMenuOpening event is not sent when button is disabled
Posted: 27 Dec 2018, 08:07
Hi,
In WPF, we get ContextMenuOpening event on both the button and the grid.
However, in NoesisGUI, the event is not fired (it is fired if the button IsEnabled="True").
What we are trying to do is to find a trigger for displaying ContextMenu on the disabled button. Do you know any good workaround ?
Thanks.
In WPF, we get ContextMenuOpening event on both the button and the grid.
However, in NoesisGUI, the event is not fired (it is fired if the button IsEnabled="True").
Code: Select all
<Grid ContextMenuOpening="Grid_ContextMenuOpening">
<Button Name="testDisabledButton" IsEnabled="False" Content="Disabled Button" ContextMenuOpening="testDisabledButton_ContextMenuOpening">
<Button.ContextMenu>
<ContextMenu>
<MenuItem Header="Test 1"/>
<MenuItem Header="Test 2"/>
</ContextMenu>
</Button.ContextMenu>
</Button>
</Grid>
Thanks.