manager: scroll into view
This commit is contained in:
@@ -82,6 +82,7 @@
|
|||||||
|
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<TreeView
|
<TreeView
|
||||||
|
x:Name="TreeViewWorkspace"
|
||||||
ItemsSource="{Binding CurrentTreeNodes}"
|
ItemsSource="{Binding CurrentTreeNodes}"
|
||||||
SelectedItem="{Binding SelectedTreeNode}">
|
SelectedItem="{Binding SelectedTreeNode}">
|
||||||
|
|
||||||
|
|||||||
@@ -205,7 +205,10 @@ public partial class MainWindow : Window, IMainApi
|
|||||||
Version = new(),
|
Version = new(),
|
||||||
};
|
};
|
||||||
Model.CurrentWorkspace.UpdateInfos.Updates.Insert(0, update);
|
Model.CurrentWorkspace.UpdateInfos.Updates.Insert(0, update);
|
||||||
nodeUpdates.Nodes.Insert(0, new ActionSetTreeNode(update));
|
var item = new ActionSetTreeNode(update);
|
||||||
|
nodeUpdates.Nodes.Insert(0, item);
|
||||||
|
TreeViewWorkspace.SelectedItem = item;
|
||||||
|
TreeViewWorkspace.ScrollIntoView(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void MenuItemRemoveUpdate_OnClick(object? sender, RoutedEventArgs e)
|
private void MenuItemRemoveUpdate_OnClick(object? sender, RoutedEventArgs e)
|
||||||
@@ -240,8 +243,11 @@ public partial class MainWindow : Window, IMainApi
|
|||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
rows.List.Add(new MainWindowGridRow(action, rootInfos));
|
var row = new MainWindowGridRow(action, rootInfos);
|
||||||
|
rows.List.Add(row);
|
||||||
|
DataGridActions.SelectedItem = row;
|
||||||
|
DataGridActions.ScrollIntoView(row, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ButtonRemoveAction_OnClick(object? sender, RoutedEventArgs e)
|
private void ButtonRemoveAction_OnClick(object? sender, RoutedEventArgs e)
|
||||||
|
|||||||
Reference in New Issue
Block a user