DropDownButton

Derives from ContentControl

The DropDownButton control is a button that when clicked displays a drop down in which you can place any custom content.

dropdownbutton.jpg
        <extToolkit:DropDownButton Content="Click Me" Margin="15" >
            <extToolkit:DropDownButton.DropDownContent>
                <extToolkit:ColorCanvas />
            </extToolkit:DropDownButton.DropDownContent>
        </extToolkit:DropDownButton>

Properties

Property Description
Button Gets or sets the button used by the control.
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.
Content Gets or sets the object to use as the button's content.
DropDownContent Gets or sets the object to use as the drop down button's content.
IsOpen Gets or sets a value indicating whether or not the drop down is open.
MaxDropDownHeight Gets or sets the Maximum height of the popup in the control. Default is SystemParameters.PrimaryScreenHeight / 2.

Events

Event Description
Click Raised when the button is clicked.
Closed Raised when the DropDownButton dropdown closes.
Opened Raised when the DropDownButton dropdown opens.


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

Last edited Jun 1 at 2:50 PM by dlafontaine, version 11

Comments

BoucherS Feb 24 at 1:25 PM 
Issue https://wpftoolkit.codeplex.com/workitem/22176 has been created.

sparticus1701 Feb 18 at 8:34 PM 
Is there a styling I can use to get the DropDownContent to appear to the right of the button rather than below?

emartin Apr 9, 2013 at 4:14 PM 
v2.0 will support Windows 8 theme

colejohnson66 Apr 7, 2013 at 9:28 PM 
You need to add support for Windows 8's theme. (i.e. flat gray buttons). You should be able to do this by just checking if the OS is 8, and if so, use a Windows 8 theme, otherwise, use the default Windows 7 style.

terasato Apr 3, 2013 at 6:04 AM 
so good!