SplitButton

Derives from Xceed.Wpf.Toolkit.DropDownButton

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

Property Description
Command Gets or sets the command to execute when the button is clicked.
CommandParameter Gets or sets the command parameter to pass to the Command when the button is clicked.
CommandTarget Gets or sets the element on which to raise the specified command.
DropDownContent Get or sets the object to use as the drop down button's content. (Inherited from DropDownButton)
IsOpen Gets or sets a value indicating whether the dropdown is open. (Inherited from DropDownButton)

Events

Event Description
Click Raised when the control is clicked (Inherited from DropDownButton)
Opened Raised when the DropDownButton dropdown has opened. (Inherited from DropDownButton)
Closed Raised when the DropDownButton dropdown has closed. (Inherited from DropDownButton)


Support this project, check out the Plus Edition.
---

Last edited Jun 9 at 6:45 PM by dlafontaine, version 11

Comments

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

urza Sep 28, 2013 at 2: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 1:22 PM 
I wish anyone would create a splitbutton which seamlessly integrates into a ToolBar -- which means for all supported WPF themes (aero, etc.)