|
216 | 216 | HorizontalAlignment="Stretch" VerticalAlignment="Stretch" |
217 | 217 | Background="{DynamicResource Brush.Window}" |
218 | 218 | BorderBrush="{DynamicResource Brush.Border0}"/> |
| 219 | + |
| 220 | + <Grid Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3"> |
| 221 | + <Grid IsVisible="{Binding DetailContext, Converter={x:Static ObjectConverters.IsNull}}"> |
| 222 | + <Path Width="128" Height="128" |
| 223 | + Data="{StaticResource Icons.Detail}" |
| 224 | + HorizontalAlignment="Center" |
| 225 | + Fill="{DynamicResource Brush.FG2}"/> |
219 | 226 |
|
220 | | - <Border Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3"> |
221 | | - <ContentControl> |
222 | | - <ContentControl.Content> |
223 | | - <Binding Path="DetailContext"> |
224 | | - <Binding.TargetNullValue> |
225 | | - <Grid> |
226 | | - <Path Width="128" Height="128" |
227 | | - Data="{StaticResource Icons.Detail}" |
228 | | - HorizontalAlignment="Center" |
229 | | - Fill="{DynamicResource Brush.FG2}"/> |
230 | | - |
231 | | - <StackPanel Margin="0,8" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Bottom"> |
232 | | - <Path Width="12" Height="12" VerticalAlignment="Center" Data="{StaticResource Icons.Info}" Fill="{DynamicResource Brush.FG2}"/> |
233 | | - <TextBlock Margin="4,0" Text="{DynamicResource Text.Histories.Tips.Prefix}" FontWeight="Bold" Foreground="{DynamicResource Brush.FG2}"/> |
234 | | - <TextBlock Text="{DynamicResource Text.Histories.Tips}" Foreground="{DynamicResource Brush.FG2}" IsVisible="{OnPlatform True, macOS=False}"/> |
235 | | - <TextBlock Text="{DynamicResource Text.Histories.Tips.MacOS}" Foreground="{DynamicResource Brush.FG2}" IsVisible="{OnPlatform False, macOS=True}"/> |
236 | | - </StackPanel> |
237 | | - </Grid> |
238 | | - </Binding.TargetNullValue> |
239 | | - </Binding> |
240 | | - </ContentControl.Content> |
241 | | - |
| 227 | + <StackPanel Margin="0,8" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Bottom"> |
| 228 | + <Path Width="12" Height="12" VerticalAlignment="Center" Data="{StaticResource Icons.Info}" Fill="{DynamicResource Brush.FG2}"/> |
| 229 | + <TextBlock Margin="4,0" Text="{DynamicResource Text.Histories.Tips.Prefix}" FontWeight="Bold" Foreground="{DynamicResource Brush.FG2}"/> |
| 230 | + <TextBlock Text="{DynamicResource Text.Histories.Tips}" Foreground="{DynamicResource Brush.FG2}" IsVisible="{OnPlatform True, macOS=False}"/> |
| 231 | + <TextBlock Text="{DynamicResource Text.Histories.Tips.MacOS}" Foreground="{DynamicResource Brush.FG2}" IsVisible="{OnPlatform False, macOS=True}"/> |
| 232 | + </StackPanel> |
| 233 | + </Grid> |
| 234 | + |
| 235 | + <ContentControl Content="{Binding DetailContext}"> |
242 | 236 | <ContentControl.DataTemplates> |
243 | 237 | <DataTemplate DataType="vm:CommitDetail"> |
244 | 238 | <v:CommitDetail/> |
|
264 | 258 | </DataTemplate> |
265 | 259 | </ContentControl.DataTemplates> |
266 | 260 | </ContentControl> |
267 | | - </Border> |
| 261 | + </Grid> |
268 | 262 | </v:LayoutableGrid> |
269 | 263 | </UserControl> |
0 commit comments