Fix regression bug with application title no longer grayed out. (#632)
Move back the VisualStateManager node to the root XAML element to fix visual states of the titlebar. ### How changes were validated: - Manually Fixes #631
This commit is contained in:
parent
24d997dd00
commit
5966503703
@ -11,19 +11,19 @@
|
|||||||
<Grid x:Name="LayoutRoot"
|
<Grid x:Name="LayoutRoot"
|
||||||
Height="32"
|
Height="32"
|
||||||
HorizontalAlignment="Stretch">
|
HorizontalAlignment="Stretch">
|
||||||
|
<VisualStateManager.VisualStateGroups>
|
||||||
|
<VisualStateGroup x:Name="WindowFocusStates">
|
||||||
|
<VisualState x:Name="WindowFocused"/>
|
||||||
|
<VisualState x:Name="WindowNotFocused">
|
||||||
|
<VisualState.Setters>
|
||||||
|
<Setter Target="AppName.Foreground" Value="{ThemeResource SystemControlForegroundChromeDisabledLowBrush}"/>
|
||||||
|
</VisualState.Setters>
|
||||||
|
</VisualState>
|
||||||
|
</VisualStateGroup>
|
||||||
|
</VisualStateManager.VisualStateGroups>
|
||||||
<Grid x:Name="BackgroundElement"
|
<Grid x:Name="BackgroundElement"
|
||||||
Background="Transparent"
|
Background="Transparent"
|
||||||
Height="32">
|
Height="32">
|
||||||
<VisualStateManager.VisualStateGroups>
|
|
||||||
<VisualStateGroup x:Name="WindowFocusStates">
|
|
||||||
<VisualState x:Name="WindowFocused"/>
|
|
||||||
<VisualState x:Name="WindowNotFocused">
|
|
||||||
<VisualState.Setters>
|
|
||||||
<Setter Target="AppName.Foreground" Value="{ThemeResource SystemControlForegroundChromeDisabledLowBrush}"/>
|
|
||||||
</VisualState.Setters>
|
|
||||||
</VisualState>
|
|
||||||
</VisualStateGroup>
|
|
||||||
</VisualStateManager.VisualStateGroups>
|
|
||||||
<TextBlock x:Name="AppName"
|
<TextBlock x:Name="AppName"
|
||||||
x:Uid="AppName"
|
x:Uid="AppName"
|
||||||
Margin="12,0,12,0"
|
Margin="12,0,12,0"
|
||||||
|
Loading…
Reference in New Issue
Block a user