MaterialDesignInXamlToolkit icon indicating copy to clipboard operation
MaterialDesignInXamlToolkit copied to clipboard

Button with drop down

Open Tyrrrz opened this issue 6 years ago • 2 comments

Hi guys :)

So I was looking for anything similar in specification and looks like it isn't mentioned. What I want is a button that looks like this (taken from Gmail)

image image

You can see how the Send button has an arrow you can press that provides alternative options. It's important to note that the Send button can also be pressed like a regular button, it's not required that the drop down is shown.

I wonder if it's possible to add support for something like this, given it's not in official specs, albeit IMO very useful. If not, do you know of any UI design pattern I can use to replace this?

Tyrrrz avatar Apr 24 '19 14:04 Tyrrrz

Hi @Tyrrrz I would have to spend some time playing with it, but you might be able to get something working with some theming work on a button and a PopupBox. I am flagging this as an enhancement since I think something like this could be a nice addition to the library.

Keboo avatar Apr 24 '19 17:04 Keboo

If it helps, the xceed extended wpf toolkit has such a control (in the free version): https://github.com/xceedsoftware/wpftoolkit/wiki/SplitButton

Mrxx99 avatar Apr 25 '19 21:04 Mrxx99

This has been implemented. See the buttons page in the demo app for more information.

MichelMichels avatar Mar 31 '24 21:03 MichelMichels