Posted on Leave a comment

Override the default style of an element – Windows 8.1 aps

One simple way to override the default style of an element on Windows Store aps can be done by changing the default styles. So first of all google for those styles and when you find them just edit and paste in

App.xaml

For example i wanted to make a ToggleSwitch Black. So i found all the available styles and i just modified those i wanted. Then in App.xaml you could see that

<Application.Resources>
<SolidColorBrush x:Key="SearchBoxButtonBackgroundThemeBrush" Color="Black" />
<SolidColorBrush x:Key="ToggleSwitchCurtainBackgroundThemeBrush" Color="Black" />
<SolidColorBrush x:Key="ToggleSwitchCurtainDisabledBackgroundThemeBrush" Color="Transparent" />
<SolidColorBrush x:Key="ToggleSwitchCurtainPointerOverBackgroundThemeBrush" Color="Black" />
<SolidColorBrush x:Key="ToggleSwitchCurtainPressedBackgroundThemeBrush" Color="Black" />
</Application.Resources>