In This Article

BarComboBoxDropDownButton Class

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

public class BarComboBoxDropDownButton : BarPopupButtonBase, IDataContextProvider, IThemeVariantHost, IResourceHost, IResourceNode, IStyleHost, ISetLogicalParent, ISetInheritanceParent, IStyleable, INamed, IDataTemplateHost, ISetterValue, IChildIndexProvider, IFocusScope, IInputElement, ILogical, ICommandSource
Inheritance:
object AvaloniaObject Animatable StyledElement Visual Layoutable Interactive InputElement Control TemplatedControl ItemsControl SelectingItemsControl MenuBase BarPopupButtonBase object
Implements:
IDataContextProvider IThemeVariantHost IResourceHost IResourceNode IStyleHost ISetLogicalParent ISetInheritanceParent IStyleable INamed IDataTemplateHost ISetterValue IChildIndexProvider IFocusScope IInputElement ILogical ICommandSource

Constructors

BarComboBoxDropDownButton()

Initializes an instance of the class.

public BarComboBoxDropDownButton()

Properties

MaxPopupHeight

The maximum height of the popup content.

protected override double MaxPopupHeight { get; }

Property Value

double

MinPopupWidth

The minimum width of the popup content.

protected override double MinPopupWidth { get; }

Property Value

double

Methods

OnClosed(RoutedEventArgs)

Occurs after the Avalonia.Controls.MenuBase.IsOpen property changes to false.

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

The Avalonia.Interactivity.RoutedEventArgs that contains the event data.

OnCreateAutomationPeer()

Returns a new, type-specific Avalonia.Automation.Peers.AutomationPeer implementation for the control.

protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer:

The type-specific Avalonia.Automation.Peers.AutomationPeer implementation.

OnOpened(RoutedEventArgs)

Occurs after the Avalonia.Controls.MenuBase.IsOpen property changes to true.

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

The Avalonia.Interactivity.RoutedEventArgs that contains the event data.

SetFocusForPopupTogglePointerPressed()

Sets focus in response to an popup toggle area pointer press.

protected override bool SetFocusForPopupTogglePointerPressed()

Returns

bool:

true if focus was set; otherwise, false.

UpdatePopupPlacement()

Updates the popup placement as needed.

protected override void UpdatePopupPlacement()

Inherited Members

Extension Methods