Skip to content

DataGrid ContextMenu flickers on consecutive right-click actions #11741

Description

Describe the bug

In the DataGrid control, a ContextMenu is displayed for data rows when the user right-clicks on a cell. However, when the user repeatedly right-clicks on different cells, the ContextMenu flickers. Instead of closing and reopening smoothly, it appears to open twice, resulting in a noticeable flickering effect.

Replication steps

  1. Run the sample application.
  2. Right-click on any cell to display the ContextMenu.
  3. Right-click on a different cell while the ContextMenu is still open.

Expected behavior

The ContextMenu should be displayed smoothly without any flickering.

Screenshots

DataGrid-ContentMenu.mp4

Windows version

No response

Additional context

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions