I thought everything was looking good with my user controls, styles and layout etc, until I released a version for the user to test. They asked if the Toggle button could be Green when checked. I said it is, but it wasn't. I checked on my machine and it was Green. Turns out he has a different xp style set to me. i.e. he has 'Windows Classic style'.
My question is, how do i avoid this and enforce my styles regardless of the windows style?
<UserControl.Resources>
<Style x:Key="MyToggStyle" TargetType="{x:Type ToggleButton}">
<Setter Property="Content" Value="On" />
<Setter Property="IsChecked" Value="True" />
<Setter Property="Background" Value="Green" />
<Style.Triggers>
<Trigger Property="IsChecked" Value="False">
<Setter Property="Content" Value="Pff" />
<Setter Property="Background" Value="Red" />
</Trigger>
</Style.Triggers>
</Style>
</UserControl.Resources>
<Grid x:Name="LayoutRoot">
<ToggleButton FontWeight="Bold" IsChecked="{Binding Path=IsChecked, Mode=TwoWay}"
Style="{StaticResource MyToggStyle}"/>
</Grid>