Closed ZhmerenkaSolution closed 3 years ago
The ToggleSwitch is available as a style, see https://benruehl.github.io/adonis-ui/docs/guides/styles-and-templates/
You would do something like this:
<Button Style="{DynamicResource {x:Static adonisUi:Styles.ToggleSwitch }}"/>
@alexhelms Thanks for answering!
You're right, it's a style. Just a little addition: It targets toggle buttons so you can use it on ToggleButton
or CheckBox
for example.
Yep, that's it, thanks my dudes.
<ToggleButton Style="{DynamicResource {x:Static adonisUi:Styles.ToggleSwitch }}" />
work fine.
How to add
I thot that is custom control and I didn't found that in
ToggleSwitch
on Window in xaml?<AdnousUi.Controls:ToggleSwitch
orAdonisUI:ToggleSwitch
or even your documentation.