|
37 | 37 | SelectionChanged="OnRowSelectionChanged">
|
38 | 38 | <ListBox.ItemTemplate>
|
39 | 39 | <DataTemplate DataType="vm:ChangeTreeNode">
|
40 |
| - <Grid ColumnDefinitions="16,Auto,Auto,*" |
| 40 | + <Grid ColumnDefinitions="16,Auto,Auto,Auto" |
41 | 41 | Margin="{Binding Depth, Converter={x:Static c:IntConverters.ToTreeMargin}}"
|
42 | 42 | Background="Transparent"
|
43 | 43 | DoubleTapped="OnRowDoubleTapped"
|
|
58 | 58 | IsChecked="{Binding IsExpanded}"
|
59 | 59 | IsVisible="{Binding IsFolder}"/>
|
60 | 60 |
|
61 |
| - <v:ChangeStatusIcon Grid.Column="1" Width="14" Height="14" IsUnstagedChange="{Binding #ThisControl.IsUnstagedChange}" Change="{Binding Change}" IsVisible="{Binding !IsFolder}"/> |
62 |
| - <TextBlock Grid.Column="2" Classes="primary" Text="{Binding FullPath, Converter={x:Static c:PathConverters.PureFileName}}" Margin="6,0,0,0"/> |
| 61 | + <v:ChangeStatusIcon Grid.Column="1" |
| 62 | + Width="14" Height="14" |
| 63 | + IsUnstagedChange="{Binding #ThisControl.IsUnstagedChange}" |
| 64 | + Change="{Binding Change}" |
| 65 | + IsVisible="{Binding !IsFolder}"/> |
| 66 | + |
| 67 | + <StackPanel Grid.Column="3" Orientation="Horizontal" Margin="4,0,0,0"> |
| 68 | + <TextBlock Classes="primary" Text="{Binding ConflictMarker}" Foreground="DarkOrange" FontWeight="Bold" Margin="0,0,4,0" IsVisible="{Binding ShowConflictMarker}"/> |
| 69 | + <TextBlock Classes="primary" Text="{Binding FullPath, Converter={x:Static c:PathConverters.PureFileName}}"/> |
| 70 | + </StackPanel> |
63 | 71 | </Grid>
|
64 | 72 | </DataTemplate>
|
65 | 73 | </ListBox.ItemTemplate>
|
|
84 | 92 | IsUnstagedChange="{Binding #ThisControl.IsUnstagedChange}"
|
85 | 93 | Change="{Binding}" />
|
86 | 94 |
|
87 |
| - <TextBlock Grid.Column="1" |
88 |
| - Classes="primary" |
89 |
| - Text="{Binding Path, Converter={x:Static c:PathConverters.PureFileName}}" |
90 |
| - Margin="4,0"/> |
| 95 | + <StackPanel Grid.Column="1" Orientation="Horizontal" Margin="4,0"> |
| 96 | + <TextBlock Classes="primary" Text="{Binding ConflictMarker}" Foreground="DarkOrange" FontWeight="Bold" Margin="0,0,4,0" IsVisible="{Binding IsConflicted}"/> |
| 97 | + <TextBlock Classes="primary" Text="{Binding Path, Converter={x:Static c:PathConverters.PureFileName}}"/> |
| 98 | + </StackPanel> |
91 | 99 |
|
92 | 100 | <TextBlock Grid.Column="2"
|
93 | 101 | Classes="primary"
|
|
117 | 125 | IsUnstagedChange="{Binding #ThisControl.IsUnstagedChange}"
|
118 | 126 | Change="{Binding}" />
|
119 | 127 |
|
120 |
| - <TextBlock Grid.Column="1" |
121 |
| - Classes="primary" |
122 |
| - Text="{Binding Path}" |
123 |
| - Margin="4,0"/> |
| 128 | + <StackPanel Grid.Column="1" Orientation="Horizontal" Margin="4,0"> |
| 129 | + <TextBlock Classes="primary" Text="{Binding ConflictMarker}" Foreground="DarkOrange" FontWeight="Bold" Margin="0,0,4,0" IsVisible="{Binding IsConflicted}"/> |
| 130 | + <TextBlock Classes="primary" Text="{Binding Path}"/> |
| 131 | + </StackPanel> |
124 | 132 | </Grid>
|
125 | 133 | </DataTemplate>
|
126 | 134 | </ListBox.ItemTemplate>
|
|
0 commit comments