|
37 | 37 | SelectionChanged="OnRowSelectionChanged"> |
38 | 38 | <ListBox.ItemTemplate> |
39 | 39 | <DataTemplate DataType="vm:ChangeTreeNode"> |
40 | | - <Grid ColumnDefinitions="16,16,Auto,*" |
41 | | - Margin="{Binding Depth, Converter={x:Static c:IntConverters.ToTreeMargin}}" |
42 | | - Background="Transparent" |
43 | | - DoubleTapped="OnRowDoubleTapped" |
44 | | - DataContextChanged="OnRowDataContextChanged"> |
45 | | - <v:ChangeTreeNodeToggleButton Grid.Column="0" |
46 | | - Classes="tree_expander" |
47 | | - Focusable="False" |
48 | | - HorizontalAlignment="Center" |
49 | | - IsChecked="{Binding IsExpanded, Mode=OneWay}" |
50 | | - IsVisible="{Binding IsFolder}"/> |
51 | | - |
52 | | - <ToggleButton Grid.Column="1" |
53 | | - Classes="folder" |
| 40 | + <StackPanel Orientation="Horizontal" |
| 41 | + Height="24" |
| 42 | + Margin="{Binding Depth, Converter={x:Static c:IntConverters.ToTreeMargin}}" |
| 43 | + Background="Transparent" |
| 44 | + DoubleTapped="OnRowDoubleTapped" |
| 45 | + DataContextChanged="OnRowDataContextChanged"> |
| 46 | + <Border Width="16"> |
| 47 | + <v:ChangeTreeNodeToggleButton Classes="tree_expander" |
| 48 | + Focusable="False" |
| 49 | + HorizontalAlignment="Center" |
| 50 | + IsChecked="{Binding IsExpanded, Mode=OneWay}" |
| 51 | + IsVisible="{Binding IsFolder}"/> |
| 52 | + </Border> |
| 53 | + |
| 54 | + <ToggleButton Classes="folder" |
54 | 55 | Focusable="False" |
55 | 56 | Width="14" Height="14" |
56 | | - Margin="0,1,0,0" |
| 57 | + Margin="1,1,1,0" |
57 | 58 | Foreground="Goldenrod" |
58 | 59 | IsChecked="{Binding IsExpanded}" |
59 | 60 | IsVisible="{Binding IsFolder}"/> |
60 | 61 |
|
61 | | - <v:ChangeStatusIcon Grid.Column="1" |
62 | | - Width="14" Height="14" |
| 62 | + <v:ChangeStatusIcon Width="14" Height="14" |
| 63 | + Margin="1,0" |
63 | 64 | IsUnstagedChange="{Binding #ThisControl.IsUnstagedChange}" |
64 | 65 | Change="{Binding Change}" |
65 | 66 | IsVisible="{Binding !IsFolder}"/> |
66 | 67 |
|
67 | | - <StackPanel Grid.Column="2" Orientation="Horizontal" Margin="4,0,0,0"> |
68 | | - <TextBlock Text="{Binding ConflictMarker, Mode=OneWay}" Foreground="DarkOrange" FontWeight="Bold" Margin="0,0,4,0" IsVisible="{Binding ShowConflictMarker}"/> |
69 | | - <TextBlock Text="{Binding DisplayName, Mode=OneWay}"/> |
70 | | - </StackPanel> |
71 | | - </Grid> |
| 68 | + <TextBlock Text="{Binding ConflictMarker, Mode=OneWay}" |
| 69 | + Foreground="DarkOrange" |
| 70 | + FontWeight="Bold" |
| 71 | + Margin="4,0,0,0" |
| 72 | + IsVisible="{Binding ShowConflictMarker}"/> |
| 73 | + |
| 74 | + <TextBlock Text="{Binding DisplayName, Mode=OneWay}" |
| 75 | + Margin="4,0,0,0"/> |
| 76 | + </StackPanel> |
72 | 77 | </DataTemplate> |
73 | 78 | </ListBox.ItemTemplate> |
74 | 79 | </v:ChangeCollectionContainer> |
|
82 | 87 | SelectionChanged="OnRowSelectionChanged"> |
83 | 88 | <ListBox.ItemTemplate> |
84 | 89 | <DataTemplate DataType="m:Change"> |
85 | | - <Grid ColumnDefinitions="Auto,Auto,Auto,*" |
86 | | - Background="Transparent" |
87 | | - DoubleTapped="OnRowDoubleTapped" |
88 | | - DataContextChanged="OnRowDataContextChanged"> |
89 | | - <v:ChangeStatusIcon Grid.Column="0" |
90 | | - Width="14" Height="14" |
| 90 | + <StackPanel Orientation="Horizontal" |
| 91 | + Height="24" |
| 92 | + Background="Transparent" |
| 93 | + DoubleTapped="OnRowDoubleTapped" |
| 94 | + DataContextChanged="OnRowDataContextChanged"> |
| 95 | + <v:ChangeStatusIcon Width="14" Height="14" |
91 | 96 | Margin="4,0,0,0" |
92 | 97 | IsUnstagedChange="{Binding #ThisControl.IsUnstagedChange}" |
93 | 98 | Change="{Binding}" /> |
94 | 99 |
|
95 | | - <StackPanel Grid.Column="1" Orientation="Horizontal" Margin="4,0"> |
96 | | - <TextBlock Text="{Binding ConflictMarker}" Foreground="DarkOrange" FontWeight="Bold" Margin="0,0,4,0" IsVisible="{Binding IsConflicted}"/> |
97 | | - <TextBlock Text="{Binding Path, Converter={x:Static c:PathConverters.PureFileName}}"/> |
98 | | - </StackPanel> |
| 100 | + <TextBlock Text="{Binding ConflictMarker}" |
| 101 | + Foreground="DarkOrange" |
| 102 | + FontWeight="Bold" |
| 103 | + Margin="4,0,0,0" IsVisible="{Binding IsConflicted}"/> |
| 104 | + |
| 105 | + <TextBlock Text="{Binding Path, Converter={x:Static c:PathConverters.PureFileName}}" |
| 106 | + Margin="4,0,0,0"/> |
99 | 107 |
|
100 | | - <TextBlock Grid.Column="2" |
101 | | - Text="{Binding Path, Converter={x:Static c:PathConverters.PureDirectoryName}}" |
102 | | - Foreground="{DynamicResource Brush.FG2}"/> |
103 | | - </Grid> |
| 108 | + <TextBlock Text="{Binding Path, Converter={x:Static c:PathConverters.PureDirectoryName}}" |
| 109 | + Foreground="{DynamicResource Brush.FG2}" |
| 110 | + Margin="4,0,0,0"/> |
| 111 | + </StackPanel> |
104 | 112 | </DataTemplate> |
105 | 113 | </ListBox.ItemTemplate> |
106 | 114 | </v:ChangeCollectionContainer> |
|
114 | 122 | SelectionChanged="OnRowSelectionChanged"> |
115 | 123 | <ListBox.ItemTemplate> |
116 | 124 | <DataTemplate DataType="m:Change"> |
117 | | - <Grid ColumnDefinitions="Auto,Auto,*" |
118 | | - Background="Transparent" |
119 | | - DoubleTapped="OnRowDoubleTapped" |
120 | | - DataContextChanged="OnRowDataContextChanged"> |
121 | | - <v:ChangeStatusIcon Grid.Column="0" |
122 | | - Width="14" Height="14" |
| 125 | + <StackPanel Orientation="Horizontal" |
| 126 | + Height="24" |
| 127 | + Background="Transparent" |
| 128 | + DoubleTapped="OnRowDoubleTapped" |
| 129 | + DataContextChanged="OnRowDataContextChanged"> |
| 130 | + <v:ChangeStatusIcon Width="14" Height="14" |
123 | 131 | Margin="4,0,0,0" |
124 | 132 | IsUnstagedChange="{Binding #ThisControl.IsUnstagedChange}" |
125 | 133 | Change="{Binding}" /> |
126 | 134 |
|
127 | | - <StackPanel Grid.Column="1" Orientation="Horizontal" Margin="4,0"> |
128 | | - <TextBlock Text="{Binding ConflictMarker}" Foreground="DarkOrange" FontWeight="Bold" Margin="0,0,4,0" IsVisible="{Binding IsConflicted}"/> |
129 | | - <TextBlock Text="{Binding Path}"/> |
130 | | - </StackPanel> |
131 | | - </Grid> |
| 135 | + <TextBlock Text="{Binding ConflictMarker}" |
| 136 | + Foreground="DarkOrange" |
| 137 | + FontWeight="Bold" |
| 138 | + Margin="4,0,0,0" |
| 139 | + IsVisible="{Binding IsConflicted}"/> |
| 140 | + |
| 141 | + <TextBlock Margin="4,0,0,0" |
| 142 | + Text="{Binding Path}"/> |
| 143 | + </StackPanel> |
132 | 144 | </DataTemplate> |
133 | 145 | </ListBox.ItemTemplate> |
134 | 146 | </v:ChangeCollectionContainer> |
|
0 commit comments