S
S
Semyon Novikov2018-04-18 19:36:34
Design
Semyon Novikov, 2018-04-18 19:36:34

How to do Toggle Button Material Design in WPF?

I use a library for Material Design in WPF. You need to make toggle buttons like in the picture. Here is what I have in XALM :

<ToggleButton Command="EditingCommands.ToggleBold" Name="btnBold">
                <Image Width="16" Height="16" />
            </ToggleButton>
            <ToggleButton Command="EditingCommands.ToggleItalic" Name="btnItalic">
                <Image  Width="16" Height="16" />
            </ToggleButton>
            <ToggleButton Command="EditingCommands.ToggleUnderline" Name="btnUnderline">
                <Image  Width="16" Height="16" />
            </ToggleButton>

It turns out not quite what you need:
5ad7729a4743b001803768.pngHow it should be: (multiple choice)
5ad7729f29246976045205.png5ad773b07afa6977329199.pngI will also be grateful if you tell me how to make a single selection of buttons (for example, text alignment as in a Word)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Zabrodin, 2018-05-05
@semennovikov123

Examples of all controls can be found here in the MainDemo.Wpf folder An example of the
ToggleButtons you need is here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question