Table of Contents

Namespace Avalonia.Controls

Classes

AutoCompleteBox

Represents a control that provides a text box for user input and a drop-down that contains possible matches based on the input in the text box.

AutoCompleteBox.BindingEvaluator<T>

A framework element that permits a binding to be evaluated in a new data context leaf node.

Border

A control which decorates a child with a border and background.

Button

A standard button control.

ButtonSpinner

Represents a spinner control that includes two Buttons.

Calendar

Represents a control that enables a user to select a date by using a visual calendar display.

CalendarDateChangedEventArgs

Provides data for the DisplayDateChanged event.

CalendarDatePicker

A date selection control that allows the user to select dates from a drop down calendar.

CalendarDatePickerDateValidationErrorEventArgs

Provides data for the DateValidationError event.

CalendarDateRange
CalendarModeChangedEventArgs

Provides data for the DisplayModeChanged event.

Canvas

A panel that displays child controls at arbitrary locations.

Carousel

An items control that displays its items as pages that fill the control.

CheckBox

A check box control.

Classes

Holds a collection of style classes for an StyledElement.

ColumnDefinition

Holds a column definitions for a Grid.

ColumnDefinitions

A collection of ColumnDefinitions.

ComboBox

A drop-down list control.

ComboBoxItem

A selectable item in a ComboBox.

ContainerClearingEventArgs

Provides data for the ContainerClearing event.

ContainerIndexChangedEventArgs

Provides data for the ContainerIndexChanged event.

ContainerPreparedEventArgs

Provides data for the ContainerPrepared event.

ContentControl

Displays Content according to an IDataTemplate.

ContextMenu

A control context menu.

ContextRequestedEventArgs

Provides event data for the ContextRequested event.

Control

Base class for Avalonia controls.

ControlExtensions

Adds common functionality to Control.

Controls

A collection of Controls.

DataValidationErrors

A control which displays an error notifier when there is a DataValidationError. Provides attached properties to track errors on a control

DatePicker

A control to allow the user to select a date

DatePickerPresenter

Defines the presenter used for selecting a date for a DatePicker

DatePickerSelectedValueChangedEventArgs

Defines the argument passed when the DatePicker SelectedDate changes

Decorator

Base class for controls which decorate a single child control.

DefinitionBase

DefinitionBase provides core functionality used internally by Grid and ColumnDefinitionCollection / RowDefinitionCollection

DefinitionList<T>
Design
DesktopApplicationExtensions
DockPanel

A panel which arranges its children at the top, bottom, left, right or center.

DropDownButton

A button with an added drop-down chevron to visually indicate it has a flyout with additional actions.

Expander

A control with a header that has a collapsible content section.

ExperimentalAcrylicBorder
Flyout
FlyoutPresenter
Grid

Defines a flexible grid area that consists of columns and rows.

GridSplitter

Represents the control that redistributes space between columns or rows of a Grid control.

HotKeyManager
HyperlinkButton

A button control that functions as a navigateable hyperlink.

IconElement
Image

Displays a Bitmap image.

ItemCollection

Holds the list of items that constitute the content of an ItemsControl.

ItemsControl

Displays a collection of items.

ItemsSourceView

Represents a standardized view of the supported interactions between an items collection and an items control.

ItemsSourceView<T>
Label

Label control. Focuses Target on pointer click or access key press (Alt + accessKey)

LayoutTransformControl

Control that implements support for transformations as if applied by LayoutTransform.

ListBox

An ItemsControl in which individual items can be selected.

ListBoxItem

A selectable item in a ListBox.

MacOSProperties

Set of MacOS specific attached properties that allow deeper customization of the application per platform.

MaskedTextBox
Menu

A top-level menu control.

MenuBase

Base class for menu controls.

MenuFlyout
MenuFlyoutPresenter
MenuItem

A menu item control.

NameScope

Implements a name scope.

NameScopeExtensions

Extension methods for INameScope.

NameScopeLocator
NativeControlHost
NativeMenu
NativeMenuBar
NativeMenuItem
NativeMenuItemBase
NativeMenuItemSeparator
NumericUpDown

Control that represents a TextBox with button spinners that allow incrementing and decrementing numeric values.

NumericUpDownValueChangedEventArgs
Panel

Base class for controls that can contain multiple children.

PathIcon
PixelPointEventArgs

Provides PixelPoint data for events.

PopulatedEventArgs

Provides data for the Populated event.

PopulatingEventArgs

Provides data for the Populating event.

ProgressBar

A control used to indicate the progress of an operation.

ProgressBar.ProgressBarTemplateSettings

Provides calculated values for use with the ProgressBar's control theme or template.

PseudolassesExtensions
RadioButton

Represents a button that allows a user to select a single option from a group of options.

RefreshCompletionDeferral

Deferral class for notify that a work done in RefreshRequested event is done.

RefreshContainer

Represents a container control that provides a RefreshVisualizer and pull-to-refresh functionality for scrollable content.

RefreshRequestedEventArgs

Provides event data for RefreshRequested events.

RefreshVisualizer
RelativePanel

Defines an area within which you can position and align child objects in relation to each other or the parent panel.

RepeatButton

Represents a control that raises its Click event repeatedly when it is pressed and held.

RequestBringIntoViewEventArgs
ResolveByNameAttribute

Indicates that the property resolves an element by Name or x:Name. When applying this to attached properties, ensure to put on both the Getter and Setter methods.

ResourceDictionary

An indexed dictionary of resources.

ResourceNodeExtensions
ResourceProvider

Base implementation for IResourceProvider interface. Includes Owner property management.

ResourcesChangedEventArgs
ReversibleStackPanel

Implements a StackPanel where the flow direction of its items can be reversed.

RowDefinition

Holds a row definitions for a Grid.

RowDefinitions

A collection of RowDefinitions.

Screens

Represents all screens available on a device.

ScrollChangedEventArgs

Describes a change in scrolling state.

ScrollViewer

A control which scrolls its content if the content is bigger than the space available.

SelectableTextBlock

A control that displays a block of formatted text.

SelectionChangedEventArgs

Provides data for the SelectionChanged event.

Separator

A separator control.

SizeChangedEventArgs

Provides data specific to a SizeChanged event.

Slider

A control that lets the user select from a range of values by moving a Thumb control along a Track.

SpinEventArgs

Provides data for the Spinner.Spin event.

Spinner

Base class for controls that represents controls that can spin.

SplitButton

A button with primary and secondary parts that can each be pressed separately. The primary part behaves like a Button and the secondary part opens a flyout.

SplitView

A control with two views: A collapsible pane and an area for content

StackPanel

A panel which lays out its children horizontally or vertically.

TabControl

A tab control that displays a tab strip along with the content of the selected tab.

TabItem

An item in a TabControl.

TextBlock

A control that displays a block of text.

TextBox

Represents a control that can be used to display or edit unformatted text.

TextChangedEventArgs

Provides data specific to a TextChanged event.

TextChangingEventArgs

Provides data specific to a TextChanging event.

ThemeVariantScope

Decorator control that isolates controls subtree with locally defined ThemeVariant.

TickBar

An element that is used for drawing Slider's Ticks.

TimePicker

A control to allow the user to select a time.

TimePickerPresenter

Defines the presenter used for selecting a time. Intended for use with TimePicker but can be used independently

TimePickerSelectedValueChangedEventArgs
ToggleSplitButton

A button with primary and secondary parts that can each be pressed separately. The primary part behaves like a ToggleButton with two states and the secondary part opens a flyout.

ToggleSwitch

A Toggle Switch control.

ToolTip

A control which pops up a hint when a control is hovered.

TopLevel

Base class for top-level widgets.

TransitionCompletedEventArgs

Represents the event arguments for TransitionCompletedEvent.

TransitioningContentControl

Displays Content according to an IDataTemplate, using a PageTransition to move between the old and new content.

TrayIcon
TrayIcons
TreeView

Displays a hierarchical tree of data.

TreeViewItem

An item in a TreeView.

UserControl

Provides the base class for defining a new control that encapsulates related existing controls and provides its own logic.

Viewbox

Viewbox is used to scale single child to fit in the available space.

VirtualizingCarouselPanel

A panel used by Carousel to display the current item.

VirtualizingPanel

Base class for panels that can be used to virtualize items for an ItemsControl.

VirtualizingStackPanel

Arranges and virtualizes content on a single line that is oriented either horizontally or vertically.

Win32Properties

Set of Win32 specific properties and events that allow deeper customization of the application per platform.

Window

A top-level window.

WindowBase

Base class for top-level windows.

WindowClosingEventArgs

Provides data for the Closing event.

WindowIcon

Represents an icon for a window.

WindowResizedEventArgs

Provides data for the Resized event.

WindowTransparencyLevelCollection
WrapPanel

Positions child elements in sequential position from left to right, breaking content to the next line at the edge of the containing box. Subsequent ordering happens sequentially from top to bottom or from right to left, depending on the value of the Orientation property.

X11Properties

Set of X11 specific properties and events that allow deeper customization of the application per platform.

Structs

AcrylicPlatformCompensationLevels

Defines compensation levels for the platform depending on the transparency level. It controls the base opacity level of the 'tracing paper' layer that compensates for low blur radius.

GridLength

Holds the width or height of a Grid's column and row definitions.

TextBlock.InlinesTextSource
TextBlock.SimpleTextSource
WindowTransparencyLevel

Interfaces

IDeferredContent

Represents a deferred content.

IGlobalDataTemplates

Defines the application-global data templates.

INameScope

Defines a name scope.

INativeMenuExporterEventsImplBridge
INativeMenuItemExporterEventsImplBridge
IPseudoClasses

Exposes an interface for setting pseudoclasses on a Classes collection.

IResourceDictionary

An indexed dictionary of resources.

IResourceHost

Represents an element which hosts resources.

IResourceNode

Represents an object that can be queried for resources.

IResourceProvider

Represents an object that can be queried for resources but does not appear in the logical tree.

IScrollAnchorProvider

Specifies a contract for a scrolling control that supports scroll anchoring.

ISelectable

An interface that is implemented by objects that expose their selection state via a boolean IsSelected property.

ISetInheritanceParent

Defines an interface through which a StyledElement's inheritance parent can be set.

ISetLogicalParent

Defines an interface through which a StyledElement's logical parent can be set.

ITemplate<TControl>

Creates a control.

IThemeVariantProvider

Resource provider with theme variant awareness. Can be used with ThemeDictionaries.

Enums

AutoCompleteFilterMode

Specifies how text in the text box portion of the AutoCompleteBox control is used to filter items specified by the ItemsSource property for display in the drop-down.

CalendarDatePickerFormat

Specifies date formats for a CalendarDatePicker.

CalendarMode

Specifies values for the different modes of operation of a Calendar.

CalendarSelectionMode

Specifies values that describe the available selection modes for a Calendar.

ClickMode

Defines how a Button reacts to clicks.

Dock

Defines the available docking modes for a control in a DockPanel.

ExpandDirection

Direction in which an Expander control opens.

FlyoutShowMode
GridResizeBehavior

Enum to indicate what Columns or Rows the GridSplitter resizes.

GridResizeDirection

Enum to indicate whether GridSplitter resizes Columns or Rows.

GridUnitType

Defines the valid units for a GridLength.

Location
MenuItemToggleType

Defines how a MenuItem or NativeMenuItem reacts to clicks.

NativeMenuItemToggleType
PlacementMode

Defines the placement for a Popup control.

PlatformInhibitionType

A platform specific behavior that can be inhibited.

RefreshVisualizerOrientation

Defines constants that specify the orientation of a RefreshVisualizer.

RefreshVisualizerState

Defines constants that specify the state of a RefreshVisualizer

SelectionMode

Defines the selection mode for a control which can select multiple items.

ShutdownMode

Describes the possible values for ShutdownMode.

SizeToContent

Determines how a Window will size itself to fit its content.

SpinDirection

Represents spin directions that could be initiated by the end-user.

SplitViewDisplayMode

Defines constants for how the SplitView Pane should display

SplitViewPanePlacement

Defines constants for where the Pane should appear

SystemDecorations

Determines system decorations (title bar, border, etc) for a Window

TickBarPlacement

Enum which describes how to position the TickBar.

TickPlacement

Enum which describes how to position the ticks in a Slider.

ValidSpinDirections

Represents spin directions that are valid.

Win32Properties.Win32HitTestValue
WindowCloseReason

Specifies the reason that a window was closed.

WindowClosingBehavior

Describes how the Closing event behaves in the presence of child windows.

WindowEdge
WindowResizeReason

Describes the reason for a Resized event.

WindowStartupLocation

Determines the startup location of the window.

WindowState

Defines the minimized/maximized state of a Window.

WrapPanelItemsAlignment

Delegates

AutoCompleteFilterPredicate<T>

Represents the filter used by the AutoCompleteBox control to determine whether an item is a possible match for the specified text.

AutoCompleteSelector<T>

Represents the selector used by the AutoCompleteBox control to determine how the specified text should be modified with an item.

Win32Properties.CustomWindowStylesCallback
Win32Properties.CustomWndProcHookCallback