Class BinaryRibbonDropDownButton
A custom menu item class that acts like a drop down button control in the ribbon window.
Implements
Namespace: Binarymission.WPF.Controls.Office
Assembly: Binarymission.WPF.Controls.BinaryRibbon.dll
Syntax
public class BinaryRibbonDropDownButton : MenuItem, IBinaryRibbonContentElementBoundsConfigurable, IBinaryRibbonContentElement, IBinaryRibbonComponent, IBinaryRibbonKeyTipControl
Constructors
BinaryRibbonDropDownButton()
Initializes a new instance of the BinaryRibbonDropDownButton class.
Declaration
public BinaryRibbonDropDownButton()
Fields
popup
Declaration
protected Popup popup
Field Value
Type | Description |
---|---|
Popup |
PopupCloseEvent
PopupCloseEvent routed event.
Declaration
public static readonly RoutedEvent PopupCloseEvent
Field Value
Type | Description |
---|---|
RoutedEvent |
PopupOpenEvent
PopupOpenEvent routed event.
Declaration
public static readonly RoutedEvent PopupOpenEvent
Field Value
Type | Description |
---|---|
RoutedEvent |
Properties
BinaryRibbonTag
Gets or sets a generic tag.
Declaration
public object BinaryRibbonTag { get; set; }
Content
Gets or sets the content for this control instance.
Declaration
public object Content { get; set; }
CornerRadius
Gets or sets the corner radius.
Declaration
public CornerRadius CornerRadius { get; set; }
DropDownFooterContent
Gets or sets the content of the drop-down footer.
Declaration
public object DropDownFooterContent { get; set; }
DropDownFooterDataTemplate
Gets or sets the drop-down footer DataTemplate.
Declaration
public DataTemplate DropDownFooterDataTemplate { get; set; }
DropDownHeaderContent
Gets or sets the content of the drop-down header.
Declaration
public object DropDownHeaderContent { get; set; }
DropDownHeaderDataTemplate
Gets or sets the drop-down header DataTemplate.
Declaration
public DataTemplate DropDownHeaderDataTemplate { get; set; }
DropDownWidth
Gets or sets the width of the drop-down.
Declaration
public double DropDownWidth { get; set; }
IsDropDownCurrentlyPressed
Gets or sets a value indicating whether the drop-down is currently pressed.
Declaration
public bool IsDropDownCurrentlyPressed { get; set; }
LargeImage
Gets or sets the large image.
Declaration
public ImageSource LargeImage { get; set; }
MaximumDropDownPanelHeight
Gets or sets the maximum height of the drop-down panel.
Declaration
public double MaximumDropDownPanelHeight { get; set; }
PopupAnimation
Gets or sets the popup animation value for this drop-down button instance.
Declaration
public PopupAnimation PopupAnimation { get; set; }
PopupPlacement
Gets or sets the popup placement.
Declaration
public PlacementMode PopupPlacement { get; set; }
ShowDropDownImage
Gets or sets a value indicating whether to show drop-down image.
Declaration
public bool ShowDropDownImage { get; set; }
SmallImage
Gets or sets the small image.
Declaration
public ImageSource SmallImage { get; set; }
Methods
ForcePopupActiveOnMouseUp()
Declaration
protected void ForcePopupActiveOnMouseUp()
ForcePopupInactive()
Declaration
protected void ForcePopupInactive()
GetContainerForItemOverride()
Declaration
protected override DependencyObject GetContainerForItemOverride()
Returns
Type | Description |
---|---|
DependencyObject |
IsItemItsOwnContainerOverride(Object)
Declaration
protected override bool IsItemItsOwnContainerOverride(object item)
Parameters
Type | Name | Description |
---|---|---|
Object | item |
Returns
Type | Description |
---|---|
Boolean |
OnApplyTemplate()
Called when the template's tree is generated.
Declaration
public override void OnApplyTemplate()
OnDropDownCurrrentlyPressedChanged(Boolean, Boolean)
Declaration
protected virtual void OnDropDownCurrrentlyPressedChanged(bool oldValue, bool newValue)
Parameters
Type | Name | Description |
---|---|---|
Boolean | oldValue | |
Boolean | newValue |
OnKeyDown(KeyEventArgs)
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
KeyEventArgs | e |
OnMouseLeftButtonDown(MouseButtonEventArgs)
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MouseButtonEventArgs | e |
OnMouseLeftButtonUp(MouseButtonEventArgs)
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MouseButtonEventArgs | e |
OnPopupClose(Object, EventArgs)
Declaration
protected virtual void OnPopupClose(object sender, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Object | sender | |
EventArgs | e |
OnPopupOpen(Object, EventArgs)
Declaration
protected virtual void OnPopupOpen(object sender, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Object | sender | |
EventArgs | e |
SwitchState()
Declaration
protected virtual void SwitchState()
Events
PopupClose
/// Occurs when the drop-down popup is closed.
Declaration
public event RoutedEventHandler PopupClose
Event Type
Type | Description |
---|---|
RoutedEventHandler |
PopupOpen
Occurs when the drop-down popup is open.
Declaration
public event RoutedEventHandler PopupOpen
Event Type
Type | Description |
---|---|
RoutedEventHandler |
Explicit Interface Implementations
IBinaryRibbonKeyTipControl.PerformKeyTipExecute()
Performs custom logic for the method PerformKeyTipExecute().
Declaration
void IBinaryRibbonKeyTipControl.PerformKeyTipExecute()