|
51 | 51 | <Rectangle Height=".65" Margin="8" Fill="{DynamicResource Brush.Border2}" VerticalAlignment="Center"/> |
52 | 52 |
|
53 | 53 | <!-- Base Information --> |
54 | | - <Grid RowDefinitions="24,Auto,Auto,Auto" ColumnDefinitions="96,*"> |
| 54 | + <Grid RowDefinitions="24,Auto,Auto,Auto,Auto" ColumnDefinitions="96,*"> |
55 | 55 | <!-- SHA --> |
56 | 56 | <TextBlock Grid.Row="0" Grid.Column="0" Classes="info_label" Text="{DynamicResource Text.CommitDetail.Info.SHA}" /> |
57 | 57 | <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal"> |
|
117 | 117 | TextDecorations="Underline" |
118 | 118 | Cursor="Hand" |
119 | 119 | Margin="0,0,16,0" |
120 | | - PointerPressed="OnParentSHAPressed"/> |
| 120 | + PointerPressed="OnSHAPressed"/> |
| 121 | + </DataTemplate> |
| 122 | + </ItemsControl.ItemTemplate> |
| 123 | + </ItemsControl> |
| 124 | + |
| 125 | + <!-- CHILDREN --> |
| 126 | + <TextBlock Grid.Row="2" Grid.Column="0" Classes="info_label" Text="{DynamicResource Text.CommitDetail.Info.Children}"/> |
| 127 | + <ItemsControl Grid.Row="2" Grid.Column="1" Height="24" Margin="12,0,0,0" ItemsSource="{Binding #ThisControl.Children}" IsVisible="{Binding #ThisControl.Children.Count, Converter={x:Static c:IntConverters.IsGreaterThanZero}}"> |
| 128 | + <ItemsControl.ItemsPanel> |
| 129 | + <ItemsPanelTemplate> |
| 130 | + <StackPanel Orientation="Horizontal" VerticalAlignment="Center"/> |
| 131 | + </ItemsPanelTemplate> |
| 132 | + </ItemsControl.ItemsPanel> |
| 133 | + |
| 134 | + <ItemsControl.ItemTemplate> |
| 135 | + <DataTemplate> |
| 136 | + <TextBlock Classes="primary" |
| 137 | + Text="{Binding Converter={x:Static c:StringConverters.ToShortSHA}}" |
| 138 | + Foreground="DarkOrange" |
| 139 | + TextDecorations="Underline" |
| 140 | + Cursor="Hand" |
| 141 | + Margin="0,0,16,0" |
| 142 | + PointerPressed="OnSHAPressed"/> |
121 | 143 | </DataTemplate> |
122 | 144 | </ItemsControl.ItemTemplate> |
123 | 145 | </ItemsControl> |
124 | 146 |
|
125 | 147 | <!-- REFS --> |
126 | | - <TextBlock Grid.Row="2" Grid.Column="0" Classes="info_label" Text="{DynamicResource Text.CommitDetail.Info.Refs}" IsVisible="{Binding HasDecorators}"/> |
127 | | - <Border Grid.Row="2" Grid.Column="1" Margin="12,0,0,0" Height="24" IsVisible="{Binding HasDecorators}"> |
| 148 | + <TextBlock Grid.Row="3" Grid.Column="0" Classes="info_label" Text="{DynamicResource Text.CommitDetail.Info.Refs}" IsVisible="{Binding HasDecorators}"/> |
| 149 | + <Border Grid.Row="3" Grid.Column="1" Margin="12,0,0,0" Height="24" IsVisible="{Binding HasDecorators}"> |
128 | 150 | <v:CommitRefsPresenter TagBackground="{DynamicResource Brush.DecoratorTag}" |
129 | 151 | Foreground="{DynamicResource Brush.FG1}" |
130 | 152 | FontFamily="{DynamicResource Fonts.Primary}" |
|
134 | 156 | </Border> |
135 | 157 |
|
136 | 158 | <!-- Messages --> |
137 | | - <TextBlock Grid.Row="3" Grid.Column="0" Classes="info_label" Text="{DynamicResource Text.CommitDetail.Info.Message}" VerticalAlignment="Top" Margin="0,4,0,0" /> |
138 | | - <v:CommitMessagePresenter Grid.Row="3" Grid.Column="1" |
| 159 | + <TextBlock Grid.Row="4" Grid.Column="0" Classes="info_label" Text="{DynamicResource Text.CommitDetail.Info.Message}" VerticalAlignment="Top" Margin="0,4,0,0" /> |
| 160 | + <v:CommitMessagePresenter Grid.Row="4" Grid.Column="1" |
139 | 161 | Margin="12,5,8,0" |
140 | 162 | Classes="primary" |
141 | 163 | Message="{Binding #ThisControl.Message}" |
|
0 commit comments