Skip to content

Commit c0402cb

Browse files
committed
Organized the common states and custom states separately.
1 parent f9bf165 commit c0402cb

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

SfButtonWithVSM/SfButtonWithVSM/MainPage.xaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,16 @@
4848
<Setter Property="Text" Value="Enabled" />
4949
</VisualState.Setters>
5050
</VisualState>
51-
<VisualState x:Name="Pressed">
51+
<VisualState x:Name="Disabled">
5252
<VisualState.Setters>
53-
<Setter Property="Text" Value="Clicked" />
53+
<Setter Property="Text" Value="Disabled" />
5454
</VisualState.Setters>
5555
</VisualState>
56-
<VisualState x:Name="Disabled">
56+
</VisualStateGroup>
57+
<VisualStateGroup x:Name="ButtonStates">
58+
<VisualState x:Name="Pressed">
5759
<VisualState.Setters>
58-
<Setter Property="Text" Value="Disabled" />
60+
<Setter Property="Text" Value="Clicked" />
5961
</VisualState.Setters>
6062
</VisualState>
6163
<VisualState x:Name="Checked">

0 commit comments

Comments
 (0)