|
3587 | 3587 | <Grid>
|
3588 | 3588 | <Grid.RowDefinitions>
|
3589 | 3589 | <RowDefinition Height="*" />
|
3590 |
| - <RowDefinition Height="80" /> |
| 3590 | + <RowDefinition Height="80" x:Name="CommandSpaceRow"/> |
3591 | 3591 | </Grid.RowDefinitions>
|
3592 | 3592 | <ScrollViewer
|
3593 | 3593 | x:Name="ContentScrollViewer"
|
|
3638 | 3638 | TextWrapping="Wrap" />
|
3639 | 3639 | </Grid>
|
3640 | 3640 | </ScrollViewer>
|
3641 |
| - <Border |
3642 |
| - Grid.Row="1" |
3643 |
| - Padding="26 0 26 0" |
3644 |
| - Background="{DynamicResource PopupButtonAreaBGColor}" |
3645 |
| - BorderBrush="{DynamicResource PopupButtonAreaBorderColor}" |
3646 |
| - BorderThickness="0 1 0 0" |
3647 |
| - CornerRadius="0 0 8 8"> |
| 3641 | + <Border x:Name="ButtonAreaBorder" |
| 3642 | + Grid.Row="1" |
| 3643 | + Padding="26 0 26 0" |
| 3644 | + Background="{DynamicResource PopupButtonAreaBGColor}" |
| 3645 | + BorderBrush="{DynamicResource PopupButtonAreaBorderColor}" |
| 3646 | + BorderThickness="0 1 0 0" |
| 3647 | + CornerRadius="0 0 8 8"> |
3648 | 3648 | <Grid
|
3649 | 3649 | x:Name="CommandSpace"
|
3650 | 3650 | HorizontalAlignment="Stretch"
|
|
3792 | 3792 | <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CommandSpace" Storyboard.TargetProperty="Visibility">
|
3793 | 3793 | <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{x:Static Visibility.Collapsed}" />
|
3794 | 3794 | </ObjectAnimationUsingKeyFrames>
|
| 3795 | + <!-- If the window has no buttons, it's assumed that the buttons are drawn directly within the window itself (as in the case of the HotkeyDialog). |
| 3796 | + In this case, the command space area is completely hidden. --> |
| 3797 | + <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ButtonAreaBorder" Storyboard.TargetProperty="Visibility"> |
| 3798 | + <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{x:Static Visibility.Collapsed}" /> |
| 3799 | + </ObjectAnimationUsingKeyFrames> |
| 3800 | + <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CommandSpaceRow" Storyboard.TargetProperty="Height"> |
| 3801 | + <DiscreteObjectKeyFrame KeyTime="0:0:0" Value="{x:Static GridLength.Auto}" /> |
| 3802 | + </ObjectAnimationUsingKeyFrames> |
3795 | 3803 | </Storyboard>
|
3796 | 3804 | </VisualState>
|
3797 | 3805 | <VisualState x:Name="PrimaryVisible">
|
|
0 commit comments