In This Article

BarComboBoxDropDownButton Class

Represents a button control within a BarComboBox that shows the dropdown.

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

Constructors

BarComboBoxDropDownButton()

Initializes a new instance of the BarComboBoxDropDownButton class.

public BarComboBoxDropDownButton()

Properties

CanFocusSelectedGalleryItemOnPopupOpen

Gets whether the button can focus a selected gallery item when the popup is opened.

protected override bool CanFocusSelectedGalleryItemOnPopupOpen { get; }

Property Value

bool:

true if the button can focus a selected gallery item when the popup is opened; otherwise, false.

Methods

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.

OnItemsChanged(NotifyCollectionChangedEventArgs)

Invoked when the Items property changes.

protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Parameter Type Description
e NotifyCollectionChangedEventArgs

Information about the change.

OnPopupOpened(RoutedEventArgs)

Occurs when the IsPopupOpen property changes to true.

protected override void OnPopupOpened(RoutedEventArgs e)
Parameter Type Description
e RoutedEventArgs

The RoutedEventArgs 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.

SetFocusForIndicatorAreaMouseDown()

Sets focus in response to an indicator area mouse down.

protected override bool SetFocusForIndicatorAreaMouseDown()

Returns

bool:

true if focus was set; otherwise, false.

UpdatePopupPlacement()

Updates the popup placement as needed.

protected override void UpdatePopupPlacement()

Inherited Members