mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 20:54:59 +00:00
feature: support using left/right arrow to expand/collapse tree node (#463)
This commit is contained in:
parent
01380ff194
commit
07cba1cf5f
5 changed files with 82 additions and 37 deletions
|
@ -8,12 +8,12 @@
|
|||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||
x:Class="SourceGit.Views.RevisionFileTreeView"
|
||||
x:Name="ThisControl">
|
||||
<ListBox ItemsSource="{Binding #ThisControl.Rows}"
|
||||
Background="Transparent"
|
||||
SelectionMode="Single"
|
||||
SelectionChanged="OnRowsSelectionChanged"
|
||||
ScrollViewer.HorizontalScrollBarVisibility="Auto"
|
||||
ScrollViewer.VerticalScrollBarVisibility="Auto">
|
||||
<v:RevisionFileRowsListBox ItemsSource="{Binding #ThisControl.Rows}"
|
||||
Background="Transparent"
|
||||
SelectionMode="Single"
|
||||
SelectionChanged="OnRowsSelectionChanged"
|
||||
ScrollViewer.HorizontalScrollBarVisibility="Auto"
|
||||
ScrollViewer.VerticalScrollBarVisibility="Auto">
|
||||
<ListBox.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<VirtualizingStackPanel Orientation="Vertical"/>
|
||||
|
@ -46,5 +46,5 @@
|
|||
</Grid>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
</v:RevisionFileRowsListBox>
|
||||
</UserControl>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue