In This Article

DockableToolBarOptionsButton Class

Represents a popup button that can show a DockableToolBar's options and overflowed items.

public class DockableToolBarOptionsButton : BarPopupButtonBase, IPopupAnchor
Inheritance:
object Visual UIElement FrameworkElement Control ItemsControl MenuBase Menu BarPopupButtonBase object
Implements:
IPopupAnchor

Constructors

DockableToolBarOptionsButton()

Initializes a new instance of the DockableToolBarOptionsButton class.

public DockableToolBarOptionsButton()

Properties

Orientation

Gets or sets the orientation of the control.

public Orientation Orientation { get; set; }

Property Value

Orientation:

The orientation of the control.

Methods

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().

public override void OnApplyTemplate()

OnCreateAutomationPeer()

Provides an appropriate MenuAutomationPeer implementation for this control, as part of the WPF automation infrastructure.

protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer:

The type-specific AutomationPeer implementation.

OnPopupOpening(CancelRoutedEventArgs)

Occurs before the IsPopupOpen property changes to true.

protected override void OnPopupOpening(CancelRoutedEventArgs e)
Parameter Type Description
e CancelRoutedEventArgs

The CancelRoutedEventArgs that contains the event data.

Remarks

This method has no default implementation. Because an intermediate class in the inheritance might implement this method, we recommend that you call the base implementation in your implementation.

UpdatePopupPlacement()

Updates the popup placement as needed.

protected override void UpdatePopupPlacement()

Fields

OrientationProperty

Identifies the Orientation dependency property. This field is read-only.

public static readonly DependencyProperty OrientationProperty

Inherited Members