In This Article

BarComboBoxDropDownButton Class

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

public class BarComboBoxDropDownButton : BarPopupButtonBase, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild, IGeneratorHost, IContainItemStorage, ICommandSource, IPopupAnchor
Inheritance:
System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual System.Windows.UIElement System.Windows.FrameworkElement System.Windows.Controls.Control System.Windows.Controls.ItemsControl System.Windows.Controls.Primitives.MenuBase System.Windows.Controls.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

System.Boolean:

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

System.Windows.Automation.Peers.AutomationPeer:

The type-specific System.Windows.Automation.Peers.AutomationPeer implementation.

OnItemsChanged(NotifyCollectionChangedEventArgs)

Invoked when the Items property changes.

protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Parameter Type Description
e System.Collections.Specialized.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 System.Windows.RoutedEventArgs

The System.Windows.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

System.Boolean:

true if focus was set; otherwise, false.

Inherited Members

Extension Methods