DataGrid mouse hover event on every cell except headers and groups #19424
Unanswered
ZenwalkerD
asked this question in
Q&A
Replies: 1 comment 4 replies
-
For the hover design, please consider to use Styles or ControlThemes for DataGridCell. All interactive controls have a pseudoclass :pointerover for this state. Lookup docs about styles for details. The empty column is expected, it fills up the remaining space. The empty first column is there if you have grouping enabled. That's by design to add the needed indention. The button you mentioned could be part of the style mentioned above. You need to copy the entire control template from original style and add a button there, which is hidden. On the pointer over, set its visibility to true. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Dear Team,
I am very new to Avalonia, and so far i am enjoying developing a small app for learning.
The app looks something like this:

As you can see in the image, i am able to populate the DataGrid and also able to embed custom controls inside some cell of a column.
Problems/Help:
When this icon button is clicked by user; i wish to pass the row and column and cell data/index to handler.
I have been studying the https://api-docs.avaloniaui.net/docs/T_Avalonia_Controls_DataGrid document as well as searched google. No luck to any above.
Source:
XAML:
Kindly please help.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions