<ResourceDictionary> <Style x:Key="ToggleButton" TargetType="buttons:SfButton"> <Setter Property="VisualStateManager.VisualStateGroups"> <VisualStateGroupList x:Name="CommonStates"> <VisualStateGroup> <VisualState x:Name="Pressed"> <VisualState.Setters> <Setter Property="TextColor" Value="Black" /> <Setter Property="BackgroundColor" Value="White" /> </VisualState.Setters> </VisualState> <VisualState x:Name="Checked"> <VisualState.Setters> <Setter Property="TextColor" Value="Red" /> <Setter Property="BackgroundColor" Value="Blue" /> </VisualState.Setters> </VisualState> <VisualState x:Name="Normal"> <VisualState.Setters> <Setter Property="TextColor" Value="White" /> <Setter Property="BackgroundColor" Value="Black" /> </VisualState.Setters> </VisualState> <VisualState x:Name="Unchecked"> <VisualState.Setters> <Setter Property="TextColor" Value="Blue" /> <Setter Property="BackgroundColor" Value="Red" /> </VisualState.Setters> </VisualState> </VisualStateGroup> </VisualStateGroupList> </Setter> </Style> </ResourceDictionary> |