You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have managed to scroll TreeDataGrid using this method in MainWindow.axaml.cs:
private void ScrollTreeDataGrid()
{
var vm = DataContext as MainWindowViewModel;
if (vm != null && vm.AutoScrollData)
tdGrid.Scroll.Offset = tdGrid.Scroll.Offset.WithY(tdGrid.Scroll.Extent.Height);
}
I need to call this every time the source for TreeDataGrid is updated, but i did not find any event that i can use.
Items are being added to the Source using this method in ManWindowVIewModel:
I have managed to scroll TreeDataGrid using this method in MainWindow.axaml.cs:
I need to call this every time the source for TreeDataGrid is updated, but i did not find any event that i can use.
Items are being added to the Source using this method in ManWindowVIewModel:
Is there an event form TreeDataGrid that i am mising? Or is there a way i can acces the TreeDataGrid from the ViewModel and set the scroll there?
The text was updated successfully, but these errors were encountered: