Skip to content

Commit

Permalink
Add example of using Button's ControlTheme for ToggleButton
Browse files Browse the repository at this point in the history
  • Loading branch information
SKProCH committed Apr 28, 2024
1 parent 0a8b36b commit 4ba5ca6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Material.Avalonia.Demo/Pages/TogglesDemo.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -235,5 +235,16 @@
</ToggleButton>
</showMeTheXaml:XamlDisplay>
</WrapPanel>

<StackPanel>
<showMeTheXaml:XamlDisplay UniqueId="ToggleButtons10">
<ToggleButton Theme="{StaticResource MaterialFlatButton}">
<TextBlock>
<Run>Button's ControlThemes if you don't want pressed state: </Run>
<Run Text="{Binding $parent[ToggleButton].IsChecked}"></Run>
</TextBlock>
</ToggleButton>
</showMeTheXaml:XamlDisplay>
</StackPanel>
</StackPanel>
</UserControl>

0 comments on commit 4ba5ca6

Please sign in to comment.