【发布时间】:2021-04-28 01:30:34
【问题描述】:
我尝试更改 UWP NavigationView 中后退按钮的前景色。我设法使用以下资源更改了侧边菜单中的所有其他项目:
<SolidColorBrush x:Key="NavigationViewItemForegroundPointerOver" Color="White"/>
<SolidColorBrush x:Key="NavigationViewItemForegroundSelected" Color="White"/>
<SolidColorBrush x:Key="NavigationViewItemForegroundSelectedPointerOver" Color="White"/>
<SolidColorBrush x:Key="NavigationViewItemForegroundPressed" Color="White"/>
<SolidColorBrush x:Key="NavigationViewItemForegroundSelectedPressed" Color="White"/>
<SolidColorBrush x:Key="NavigationViewItemForeground" Color="White" />
<Style x:Key="CustomNavigationMenuStyle" TargetType="Button" BasedOn="{StaticResource PaneToggleButtonStyle}">
<Setter Property="Foreground" Value="White" />
</Style>
我必须为后退按钮覆盖哪些资源?
【问题讨论】: