Use ToggleButton without Icon #3842
-
This is probably a simple question, but I can't figure it out. I've added a ToggleButton to my project, and it is using the default style where there is a checkbox in the button when it is checked. I'd like to select the style with no checkbox, and for the life of me I cannot figure out how. The XAML right now is nothing more complicated than: Any assistance would be gratefully welcomed. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
@AdamSmasherDerby I think you are confusing the
The default style for the |
Beta Was this translation helpful? Give feedback.
@AdamSmasherDerby can you check you XML namespace inclusions (ie. the
xmlns
) at the top of the file.I have a small example here: https://github.com/Keboo/MaterialDesignInXaml.Examples/blob/master/ToggleButton/ToggleButton.SwitchColors/MainWindow.xaml that has a PackIcon inside of a ToggleButton.