[]
        
(Showing Draft Content)

C1.WPF.Ribbon.C1DropDownTool

C1DropDownTool Class

This control represents a drop-down button, with a Content element.

Inheritance
C1DropDownTool
Namespace: C1.WPF.Ribbon
Assembly: C1.WPF.Ribbon.dll
Syntax
[StyleTypedProperty(Property = "PopupStyle", StyleTargetType = typeof(C1PopupBorder))]
[TemplatePart(Name = "DropDown", Type = typeof(C1DropDownButton))]
public class C1DropDownTool : C1Tool

Constructors

Name Description
C1DropDownTool()

Initializes a new instance of the C1DropDownTool class.

Fields

Name Description
ContentProperty

Identifies the Content dependency property.

ContentTemplateProperty

Identifies the ContentTemplate dependency property.

IsDropDownOpenProperty

Identifies the IsDropDownOpen dependency property.

PopupStyleProperty

Identifies the PopupStyle dependency property.

Properties

Name Description
Content

Gets or sets the popup content.

ContentTemplate

Gets or sets the DataTemplate used to create the popup content.

IsDropDownOpen

Gets or sets whether the drop-down is opened.

PopupStyle

Gets or sets the style of the popup.

Methods

Name Description
Dispose(bool)
OnApplyTemplate()
OnKeyDown(KeyEventArgs)

Invoked on keyboard key down over C1DropDownTool. This method overrides UIElement.OnKeyDown and will close the C1DropDownTool menu based on keyboard input. This prevents focus from getting out of the dropdown if TAB or arrow keys are pressed. This applies only when the dropdown is open.

Events

Name Description
IsDropDownOpenChanged

Occurs when the drop-down is open or closed.