Skip to content

Commit 69b28a2

Browse files
dkuafpomianowski
andauthored
fix(controls): Change order of triggers for Button (#1702)
Co-authored-by: pomian <13592821+pomianowski@users.noreply.github.com>
1 parent 5922459 commit 69b28a2

2 files changed

Lines changed: 190 additions & 160 deletions

File tree

src/Wpf.Ui.Gallery/Views/Pages/BasicInput/ButtonPage.xaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,5 +125,31 @@
125125
</Canvas>
126126
</ui:Button>
127127
</controls:ControlExample>
128+
129+
<controls:ControlExample
130+
Margin="0,32,0,0"
131+
HeaderText="WPF UI button disabled/enabled"
132+
XamlCode="&lt;ui:Button Appearance=&quot;Primary&quot; IsEnabled=&quot;False&quot; /&gt;">
133+
<StackPanel>
134+
<TextBlock Text="Enabled" />
135+
<WrapPanel>
136+
<ui:Button Appearance="Primary" Content="Primary" Margin="4" />
137+
<ui:Button Appearance="Secondary" Content="Secondary" Margin="4" />
138+
<ui:Button Appearance="Success" Content="Success" Margin="4" />
139+
<ui:Button Appearance="Caution" Content="Caution" Margin="4" />
140+
<ui:Button Appearance="Danger" Content="Danger" Margin="4" />
141+
</WrapPanel>
142+
143+
<TextBlock Text="Disabled" />
144+
<WrapPanel>
145+
<ui:Button Appearance="Primary" Content="Primary" IsEnabled="False" Margin="4" />
146+
<ui:Button Appearance="Secondary" Content="Secondary" IsEnabled="False" Margin="4" />
147+
<ui:Button Appearance="Success" Content="Success" IsEnabled="False" Margin="4" />
148+
<ui:Button Appearance="Caution" Content="Caution" IsEnabled="False" Margin="4" />
149+
<ui:Button Appearance="Danger" Content="Danger" IsEnabled="False" Margin="4" />
150+
</WrapPanel>
151+
</StackPanel>
152+
</controls:ControlExample>
153+
128154
</StackPanel>
129155
</Page>

0 commit comments

Comments
 (0)