|
231 | 231 | </TextBox.InnerRightContent> |
232 | 232 | </TextBox> |
233 | 233 |
|
234 | | - <Grid Grid.Row="2" RowDefinitions="28,Auto,28,Auto,28,Auto,28,Auto,28,Auto" LayoutUpdated="OnDashboardLayoutUpdated"> |
| 234 | + <Grid Grid.Row="2" x:Name="leftSidebarGroups" RowDefinitions="28,Auto,28,Auto,28,Auto,28,Auto,28,Auto"> |
235 | 235 | <!-- Local Branches --> |
236 | 236 | <ToggleButton Grid.Row="0" Classes="group_expander" IsChecked="{Binding IsLocalBranchGroupExpanded, Mode=TwoWay}"> |
237 | 237 | <TextBlock Classes="group_header_label" Margin="0" Text="{DynamicResource Text.Repository.LocalBranches}"/> |
|
245 | 245 | ScrollViewer.HorizontalScrollBarVisibility="Disabled" |
246 | 246 | ScrollViewer.VerticalScrollBarVisibility="Auto" |
247 | 247 | ContextRequested="OnLocalBranchContextMenuRequested" |
248 | | - SelectionChanged="OnLocalBranchTreeSelectionChanged"> |
| 248 | + SelectionChanged="OnLocalBranchTreeSelectionChanged" |
| 249 | + PropertyChanged="OnLeftSidebarTreeViewPropertyChanged"> |
249 | 250 | <TreeView.Styles> |
250 | 251 | <Style Selector="TreeViewItem" x:DataType="vm:BranchTreeNode"> |
251 | 252 | <Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}"/> |
|
325 | 326 | ScrollViewer.HorizontalScrollBarVisibility="Disabled" |
326 | 327 | ScrollViewer.VerticalScrollBarVisibility="Auto" |
327 | 328 | ContextRequested="OnRemoteBranchContextMenuRequested" |
328 | | - SelectionChanged="OnRemoteBranchTreeSelectionChanged"> |
| 329 | + SelectionChanged="OnRemoteBranchTreeSelectionChanged" |
| 330 | + PropertyChanged="OnLeftSidebarTreeViewPropertyChanged"> |
329 | 331 | <TreeView.Styles> |
330 | 332 | <Style Selector="TreeViewItem" x:DataType="vm:BranchTreeNode"> |
331 | 333 | <Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}"/> |
|
401 | 403 | VerticalScrollBarVisibility="Auto" |
402 | 404 | IsVisible="{Binding IsTagGroupExpanded, Mode=OneWay}" |
403 | 405 | SelectionChanged="OnTagDataGridSelectionChanged" |
404 | | - ContextRequested="OnTagContextRequested"> |
| 406 | + ContextRequested="OnTagContextRequested" |
| 407 | + PropertyChanged="OnLeftSidebarDataGridPropertyChanged"> |
405 | 408 | <DataGrid.Styles> |
406 | 409 | <Style Selector="DataGridRow"> |
407 | 410 | <Setter Property="CornerRadius" Value="4" /> |
|
504 | 507 | VerticalScrollBarVisibility="Auto" |
505 | 508 | ContextRequested="OnSubmoduleContextRequested" |
506 | 509 | DoubleTapped="OnDoubleTappedSubmodule" |
| 510 | + PropertyChanged="OnLeftSidebarDataGridPropertyChanged" |
507 | 511 | IsVisible="{Binding IsSubmoduleGroupExpanded, Mode=OneWay}"> |
508 | 512 | <DataGrid.Styles> |
509 | 513 | <Style Selector="DataGridRow"> |
|
585 | 589 | VerticalScrollBarVisibility="Auto" |
586 | 590 | ContextRequested="OnWorktreeContextRequested" |
587 | 591 | DoubleTapped="OnDoubleTappedWorktree" |
| 592 | + PropertyChanged="OnLeftSidebarDataGridPropertyChanged" |
588 | 593 | IsVisible="{Binding IsWorktreeGroupExpanded, Mode=OneWay}"> |
589 | 594 | <DataGrid.Styles> |
590 | 595 | <Style Selector="DataGridRow"> |
|
0 commit comments