SplitButton

The SplitButton control is a button that can be clicked and also provides a drop down in which you can place any custom content within.

splitbutton.jpg
        <xctk:SplitButton Content="Click Me">
            <xctk:SplitButton.DropDownContent>
                <xctk:ColorCanvas />
            </xctk:SplitButton.DropDownContent>
        </xctk:SplitButton>

Properties / Events

Property Description
Command Gets/Sets the command to execute when the button is clicked.
CommandParameter Gets/Sets the command parameter to pass to the Command when the button is clicked.
CommandTarget Gets/Sets the element on which to raise the specified command.
DropDownContent Get/Sets the object to use as the drop down button's content.
IsOpen Gets/Sets a value indicating whether or not the drop down is open.


Event Description
Click Executes when the button is clicked.
Closed Executes when the SplitButton dropdown closes
Opened Executes when the SplitButton dropdown opens


Get 50+ awesome WPF controls in the Plus Edition.
---

Last edited May 9, 2013 at 8:52 PM by Kosmatos, version 9

Comments

BoucherS Sep 30, 2013 at 3:06 PM 
Discussion has been created.

urza Sep 28, 2013 at 1:53 PM 
Can anyone tell me please how to change the visual states of the component? Basically I want to change the blue background (mouseOver, mousePressed, IsOpen etc) with different LinearGradientBrush but I am clueless how to go about it. By editing the control template in Blend I managed to add custom trigger and override the main button part when mouseIsOver, but the glyph part and mousePressed etc are not willing to change..... how should I do it? Are the background colors defined somewhere where I could just change them? If not how should I retemplate it that I can have differen background in these visual states? Thanks a lot.

mspring Mar 26, 2012 at 12:22 PM 
I wish anyone would create a splitbutton which seamlessly integrates into a ToolBar -- which means for all supported WPF themes (aero, etc.)