Replies: 2 comments 6 replies
-
As a guess, you might need to change the event registration method. https://docs.avaloniaui.net/docs/get-started/wpf/tunnelling-events |
Beta Was this translation helpful? Give feedback.
0 replies
-
DataGrid is not using a ScrollViewer, but two separate ScrollBars, and is not firing ScrollChangedEvent routed events. I think you can only use these 'normal' events: class DataGrid
{
public event EventHandler<ScrollEventArgs> HorizontalScroll;
public event EventHandler<ScrollEventArgs> VerticalScroll;
} |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have the following xaml code in my MainWindow:
As you can see I set ScrollViewer.ScrollChanged="ParamsGrid_ScrollChanged" in DataGrid.
I have handle method in MainWindow class:
But the event handler isn't calling.
What am I doing wrong?
PS: I use Avalonia 11.2.3.
Beta Was this translation helpful? Give feedback.
All reactions