Windows Phone 8.1 中的 AppBarButton 主题

AppBarButton theme in Windows Phone 8.1

我已经尝试覆盖 AppBarItem 和键盘的默认主题,但应用程序栏项目的强调色仍然保持默认,我使用的资源列在下面。是否可以在代码中更改 AppBarItem 的背景和按下状态下 phone 键盘的背景?

"PhoneAccentBrush",
"ButtonPressedBackgroundThemeBrush",
"ProgressBarIndeterminateForegroundThemeBrush",
"ProgressBarForegroundThemeBrush",
"ToggleSwitchCurtainBackgroundThemeBrush",
"SliderTrackDecreaseBackgroundThemeBrush",
"CheckBoxPressedBackgroundThemeBrush",
"AppBarBackgroundThemeBrush",
"AppBarBorderThemeBrush",
"AppBarItemBackgroundThemeBrush",
"AppBarItemPointerOverBackgroundThemeBrush"
"AppBarItemPressedBackgroundThemeBrush"

你能试试这个吗:

App.xaml.cs 页中:

<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.ThemeDictionaries>
            <ResourceDictionary x:Key="Default">
                <SolidColorBrush x:Key="TheRecourceKeyHere" Color="Magenta" />
            </ResourceDictionary>
        </ResourceDictionary.ThemeDictionaries>
    </ResourceDictionary>
</Application.Resources>

更多:Overwrite Accent Color in App