ContextMenu not open on click between grid controls
See original GitHub issue <Grid RowDefinitions="*,Auto" Margin="10" Width="150" Height="300">
<TextBlock Grid.Row="0" Text="First text"/>
<TextBlock Grid.Row="1" Text="Second text"/>
<Grid.ContextMenu>
<ContextMenu>
<MenuItem Header="MenuHeader"/>
</ContextMenu>
</Grid.ContextMenu>
</Grid>
When click on TextBlock - menu opened When click on free space between controls - menu not opened
Test on 0.8.1-cibuild0003134-beta
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
Controls outside context menu does not get hit on a single ...
This is happening because the first click removes the focus from the context menu which is open. Handling the preview mouse down event...
Read more >Context menu not appearing on MouseDown
GridControl does not show any predefined menus for rows or cells. Only an active editor can show a context menu by right-clicking its...
Read more >How to: Handle the ContextMenuOpening Event - WPF . ...
The general technique is to get the source of the event, which is the specific control that was right-clicked, and get the ContextMenu...
Read more >Context menus and the grid control | Infragistics Forums
The problem with adding the context menu to the control is that I don't know how to then offer difrent menu options depending...
Read more >Open context menu in grid on button click
Is it possible to open a context menu, fire the OnRowContextMenu event, in a grid using a button click in a row?
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Try setting
<Grid Background="Transparent" ...
, I think that theBackground
isnull
by default, so hit test ignores it.@grokys thanks.
Because
Background =" Transparent "
helps, I close the issue.