Change the size of the MaterialDesignSwitchToggleButton #2943
-
By Default the MaterialDesignSwitchToggleButton has in it a I figured that I can put the SwitchToggleButton inside a parent
The question is though: Is there a possibility to make my SwitchToggleButtons smaller without adding an extra container for them? Thanks for your help in advance! (Sorry, I am not (yet) a super-duper expert of the WPF intricacies :( ) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @sylvesp good question. At present there is not an option (beyond the Viewbox option you listed) for that. However, I did just open up PR #2977 that will let you control the size by setting the Width of the ToggleButton. |
Beta Was this translation helpful? Give feedback.
-
At moment of writing, the code is |
Beta Was this translation helpful? Give feedback.
At moment of writing, the code is
<ViewBox Width="{TemplateBinding Width}" ... />
, effectively binding the ToggleButton.Width to the ViewBox.Width.