|
392 | 392 | <Border Style="{DynamicResource PreviewBorderStyle}" Visibility="{Binding ShowDefaultPreview}">
|
393 | 393 | <Grid
|
394 | 394 | Margin="20,0,10,0"
|
395 |
| - VerticalAlignment="Top" |
| 395 | + VerticalAlignment="Stretch" |
396 | 396 | Background="Transparent">
|
397 | 397 | <Grid.RowDefinitions>
|
398 |
| - <RowDefinition Height="Auto" MinHeight="240" /> |
399 | 398 | <RowDefinition Height="*" />
|
| 399 | + <RowDefinition Height="Auto" /> |
400 | 400 | </Grid.RowDefinitions>
|
401 | 401 | <Grid Grid.Row="0" VerticalAlignment="Center">
|
402 | 402 | <Grid.RowDefinitions>
|
403 | 403 | <RowDefinition Height="Auto" />
|
404 |
| - <RowDefinition Height="*" /> |
| 404 | + <RowDefinition Height="Auto" /> |
405 | 405 | </Grid.RowDefinitions>
|
406 | 406 | <TextBlock
|
407 | 407 | x:Name="PreviewGlyphIcon"
|
408 | 408 | Grid.Row="0"
|
| 409 | + Height="Auto" |
| 410 | + Margin="0,16,0,0" |
409 | 411 | FontFamily="{Binding Glyph.FontFamily}"
|
410 | 412 | Style="{DynamicResource PreviewGlyph}"
|
411 | 413 | Text="{Binding Glyph.Glyph}"
|
|
414 | 416 | x:Name="PreviewImageIcon"
|
415 | 417 | Grid.Row="0"
|
416 | 418 | MaxHeight="400"
|
417 |
| - Margin="0,10,0,4" |
| 419 | + Margin="0,16,0,0" |
418 | 420 | HorizontalAlignment="Center"
|
419 | 421 | Source="{Binding PreviewImage}"
|
420 | 422 | StretchDirection="DownOnly"
|
|
433 | 435 | <TextBlock
|
434 | 436 | x:Name="PreviewTitle"
|
435 | 437 | Grid.Row="1"
|
| 438 | + Margin="0,6,0,16" |
436 | 439 | HorizontalAlignment="Stretch"
|
437 | 440 | Style="{DynamicResource PreviewItemTitleStyle}"
|
438 | 441 | Text="{Binding Result.Title}"
|
439 | 442 | TextAlignment="Center"
|
440 | 443 | TextWrapping="Wrap" />
|
441 | 444 | </Grid>
|
442 | 445 | <StackPanel Grid.Row="1">
|
| 446 | + <StackPanel.Style> |
| 447 | + <Style TargetType="{x:Type StackPanel}"> |
| 448 | + <Style.Triggers> |
| 449 | + <DataTrigger Binding="{Binding ElementName=PreviewSubTitle, UpdateSourceTrigger=PropertyChanged, Path=Text.Length}" Value="0"> |
| 450 | + <Setter Property="Visibility" Value="Collapsed" /> |
| 451 | + </DataTrigger> |
| 452 | + </Style.Triggers> |
| 453 | + </Style> |
| 454 | + </StackPanel.Style> |
443 | 455 | <Separator Style="{DynamicResource PreviewSep}" />
|
444 | 456 | <TextBlock
|
445 | 457 | x:Name="PreviewSubTitle"
|
|
0 commit comments