Skip to main content

Avalonia.Controls Namespace

Classes

AutoCompleteBoxRepresents 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.
BorderA control which decorates a child with a border and background.
ButtonA standard button control.
ButtonSpinnerRepresents a spinner control that includes two Buttons.
CalendarRepresents a control that enables a user to select a date by using a visual calendar display.
CalendarDateChangedEventArgsProvides data for the DisplayDateChanged event.
CalendarDatePickerA date selection control that allows the user to select dates from a drop down calendar.
CalendarDatePickerDateValidationErrorEventArgsProvides data for the DateValidationError event.
CalendarDateRange 
CalendarModeChangedEventArgsProvides data for the DisplayModeChanged event.
CanvasA panel that displays child controls at arbitrary locations.
CarouselAn items control that displays its items as pages that fill the control.
CheckBoxA check box control.
ClassesHolds a collection of style classes for an StyledElement.
ColorChangedEventArgsHolds the details of a ColorChanged event.
ColorPickerPresents a color for user editing using a spectrum, palette and component sliders within a drop down. Editing is available when the drop down flyout is opened; otherwise, only the preview content area is shown.
ColorViewPresents a color for user editing using a spectrum, palette and component sliders.
ColumnDefinitionHolds a column definitions for a Grid.
ColumnDefinitionsA collection of ColumnDefinitions.
ComboBoxA drop-down list control.
ComboBoxItemA selectable item in a ComboBox.
ContainerClearingEventArgsProvides data for the ContainerClearing event.
ContainerIndexChangedEventArgsProvides data for the ContainerIndexChanged event.
ContainerPreparedEventArgsProvides data for the ContainerPrepared event.
ContentControlDisplays Content according to an IDataTemplate.
ContextMenuA control context menu.
ContextRequestedEventArgsProvides event data for the ContextRequested event.
ControlBase class for Avalonia controls.
ControlExtensionsAdds common functionality to Control.
ControlsA collection of Controls.
DataGridDisplays data in a customizable grid.
DataGrid.DisplayIndexComparerComparator class so we can sort list by the display index
DataGridAutoGeneratingColumnEventArgsProvides data for the AutoGeneratingColumn event.
DataGridBeginningEditEventArgsProvides data for the BeginningEdit event.
DataGridBoundColumnRepresents a DataGrid column that can bind to a property in the grid's data source.
DataGridCellRepresents an individual DataGrid cell.
DataGridCellEditEndedEventArgsProvides information just after a cell has exited editing mode.
DataGridCellEditEndingEventArgsProvides information just before a cell exits editing mode.
DataGridCellPointerPressedEventArgsProvides information after the cell has been pressed.
DataGridCheckBoxColumnRepresents a DataGrid column that hosts CheckBox controls in its cells.
DataGridColumn 
DataGridColumnEventArgsProvides data for DataGrid column-related events.
DataGridColumnHeaderRepresents an individual DataGrid column header.
DataGridColumnReorderingEventArgsProvides data for the ColumnReordering event.
DataGridLengthConverterDataGridLengthConverter - Converter class for converting instances of other types to and from DataGridLength instances.
DataGridPreparingCellForEditEventArgsProvides data for the PreparingCellForEdit event.
DataGridRowRepresents a DataGrid row.
DataGridRowClipboardEventArgsThis class encapsulates a selected row's information necessary for the CopyingRowClipboardContent event.
DataGridRowDetailsEventArgsProvides data for the LoadingRowDetails, UnloadingRowDetails, and RowDetailsVisibilityChanged events.
DataGridRowEditEndedEventArgsProvides information just after a row has exited edit mode.
DataGridRowEditEndingEventArgsProvides information just before a row exits editing mode.
DataGridRowEventArgsProvides data for DataGrid row-related events.
DataGridRowGroupHeader 
DataGridRowGroupHeaderEventArgsEventArgs used for the DataGrid's LoadingRowGroup and UnloadingRowGroup events
DataGridTemplateColumn 
DataGridTextColumnRepresents a DataGrid column that hosts textual content in its cells.
DataValidationErrorsA control which displays an error notifier when there is a DataValidationError. Provides attached properties to track errors on a control
DatePickerA control to allow the user to select a date
DatePickerPresenterDefines the presenter used for selecting a date for a DatePicker
DatePickerSelectedValueChangedEventArgsDefines the argument passed when the DatePicker SelectedDate changes
DecoratorBase class for controls which decorate a single child control.
DefinitionBaseDefinitionBase provides core functionality used internally by Grid and ColumnDefinitionCollection / RowDefinitionCollection
DefinitionList(T) 
Design 
DesktopApplicationExtensions 
DockPanelA panel which arranges its children at the top, bottom, left, right or center.
DropDownButtonA button with an added drop-down chevron to visually indicate it has a flyout with additional actions.
ExpanderA control with a header that has a collapsible content section.
ExperimentalAcrylicBorder 
FlatColorPaletteImplements a reduced flat design or flat UI color palette.
FlatHalfColorPaletteImplements half of the FlatColorPalette for improved usability.
FluentColorPaletteImplements the standard Windows 10 color palette.
Flyout 
FlyoutPresenter 
GridDefines a flexible grid area that consists of columns and rows.
GridSplitterRepresents the control that redistributes space between columns or rows of a Grid control.
HotKeyManager 
HyperlinkButtonA button control that functions as a navigateable hyperlink.
IconElement 
ImageDisplays a Bitmap image.
ItemCollectionHolds the list of items that constitute the content of an ItemsControl.
ItemsControlDisplays a collection of items.
ItemsSourceViewRepresents a standardized view of the supported interactions between an items collection and an items control.
ItemsSourceView(T) 
LabelLabel control. Focuses Target on pointer click or access key press (Alt + accessKey)
LayoutTransformControlControl that implements support for transformations as if applied by LayoutTransform.
ListBoxAn ItemsControl in which individual items can be selected.
ListBoxItemA selectable item in a ListBox.
MacOSPropertiesSet of MacOS specific attached properties that allow deeper customization of the application per platform.
MaskedTextBox 
MaterialColorPaletteImplements a reduced version of the 2014 Material Design color palette.
MaterialHalfColorPaletteImplements half of the MaterialColorPalette for improved usability.
MenuA top-level menu control.
MenuBaseBase class for menu controls.
MenuFlyout 
MenuFlyoutPresenter 
MenuItemA menu item control.
NameScopeImplements a name scope.
NameScopeExtensionsExtension methods for INameScope.
NameScopeLocator 
NativeControlHost 
NativeMenu 
NativeMenuBar 
NativeMenuItem 
NativeMenuItemBase 
NativeMenuItemSeparator 
NumericUpDownControl that represents a TextBox with button spinners that allow incrementing and decrementing numeric values.
NumericUpDownValueChangedEventArgs 
PanelBase class for controls that can contain multiple children.
PathIcon 
PixelPointEventArgsProvides PixelPoint data for events.
PopulatedEventArgsProvides data for the Populated event.
PopulatingEventArgsProvides data for the Populating event.
ProgressBarA control used to indicate the progress of an operation.
ProgressBar.ProgressBarTemplateSettingsProvides calculated values for use with the ProgressBar's control theme or template.
PseudolassesExtensions 
RadioButtonRepresents a button that allows a user to select a single option from a group of options.
RefreshCompletionDeferralDeferral class for notify that a work done in RefreshRequested event is done.
RefreshContainerRepresents a container control that provides a RefreshVisualizer and pull-to-refresh functionality for scrollable content.
RefreshRequestedEventArgsProvides event data for RefreshRequested events.
RefreshVisualizer 
RelativePanelDefines an area within which you can position and align child objects in relation to each other or the parent panel.
RepeatButtonRepresents a control that raises its Click event repeatedly when it is pressed and held.
RequestBringIntoViewEventArgs 
ResolveByNameAttributeIndicates 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.
ResourceDictionaryAn indexed dictionary of resources.
ResourceNodeExtensions 
ResourceProviderBase implementation for IResourceProvider interface. Includes Owner property management.
ResourcesChangedEventArgs 
ReversibleStackPanelImplements a StackPanel where the flow direction of its items can be reversed.
RowDefinitionHolds a row definitions for a Grid.
RowDefinitionsA collection of RowDefinitions.
ScreensRepresents all screens available on a device.
ScrollChangedEventArgsDescribes a change in scrolling state.
ScrollViewerA control which scrolls its content if the content is bigger than the space available.
SelectableTextBlockA control that displays a block of formatted text.
SelectionChangedEventArgsProvides data for the SelectionChanged event.
SeparatorA separator control.
SixteenColorPaletteImplements the standard sixteen color palette from the HTML 4.01 specification.
SizeChangedEventArgsProvides data specific to a SizeChanged event.
SliderA control that lets the user select from a range of values by moving a Thumb control along a Track.
SpinEventArgsProvides data for the Spinner.Spin event.
SpinnerBase class for controls that represents controls that can spin.
SplitButtonA 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.
SplitViewA control with two views: A collapsible pane and an area for content
StackPanelA panel which lays out its children horizontally or vertically.
TabControlA tab control that displays a tab strip along with the content of the selected tab.
TabItemAn item in a TabControl.
TextBlockA control that displays a block of text.
TextBoxRepresents a control that can be used to display or edit unformatted text.
TextChangedEventArgsProvides data specific to a TextChanged event.
TextChangingEventArgsProvides data specific to a TextChanging event.
ThemeVariantScopeDecorator control that isolates controls subtree with locally defined ThemeVariant.
TickBarAn element that is used for drawing Slider's Ticks.
TimePickerA control to allow the user to select a time.
TimePickerPresenterDefines the presenter used for selecting a time. Intended for use with TimePicker but can be used independently
TimePickerSelectedValueChangedEventArgs 
ToggleSplitButtonA 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.
ToggleSwitchA Toggle Switch control.
ToolTipA control which pops up a hint when a control is hovered.
TopLevelBase class for top-level widgets.
TransitionCompletedEventArgsRepresents the event arguments for TransitionCompletedEvent.
TransitioningContentControlDisplays Content according to an IDataTemplate, using a PageTransition to move between the old and new content.
TrayIcon 
TrayIcons 
TreeViewDisplays a hierarchical tree of data.
TreeViewItemAn item in a TreeView.
UserControlProvides the base class for defining a new control that encapsulates related existing controls and provides its own logic.
ViewboxViewbox is used to scale single child to fit in the available space.
VirtualizingCarouselPanelA panel used by Carousel to display the current item.
VirtualizingPanelBase class for panels that can be used to virtualize items for an ItemsControl.
VirtualizingStackPanelArranges and virtualizes content on a single line that is oriented either horizontally or vertically.
Win32PropertiesSet of Win32 specific properties and events that allow deeper customization of the application per platform.
WindowA top-level window.
WindowBaseBase class for top-level windows.
WindowClosingEventArgsProvides data for the Closing event.
WindowIconRepresents an icon for a window.
WindowResizedEventArgsProvides data for the Resized event.
WindowTransparencyLevelCollection 
WrapPanelPositions 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.
X11PropertiesSet of X11 specific properties and events that allow deeper customization of the application per platform.

Structures

AcrylicPlatformCompensationLevelsDefines 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.
DataGridClipboardCellContentThis structure encapsulate the cell information necessary when clipboard content is prepared.
DataGridLengthRepresents the lengths of elements within the DataGrid control.
GridLengthHolds the width or height of a Grid's column and row definitions.
TextBlock.InlinesTextSource 
TextBlock.SimpleTextSource 
WindowTransparencyLevel 

Interfaces

IColorPaletteInterface to define a color palette.
IDeferredContentRepresents a deferred content.
IGlobalDataTemplatesDefines the application-global data templates.
Not client implementable.
INameScopeDefines a name scope.
Not client implementable.
IPseudoClassesExposes an interface for setting pseudoclasses on a Classes collection.
Not client implementable.
IResourceDictionaryAn indexed dictionary of resources.
IResourceHostRepresents an element which hosts resources.
Not client implementable.
IResourceNodeRepresents an object that can be queried for resources.
Not client implementable.
IResourceProviderRepresents an object that can be queried for resources but does not appear in the logical tree.
IScrollAnchorProviderSpecifies a contract for a scrolling control that supports scroll anchoring.
ISelectableAn interface that is implemented by objects that expose their selection state via a boolean IsSelected property.
ISetInheritanceParentDefines an interface through which a StyledElement's inheritance parent can be set.
Not client implementable.
ISetLogicalParentDefines an interface through which a StyledElement's logical parent can be set.
Not client implementable.
ITemplate(TControl)Creates a control.
IThemeVariantProviderResource provider with theme variant awareness. Can be used with ThemeDictionaries.

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 

Enumerations

AlphaComponentPositionDefines the position of a color's alpha component relative to all other components.
AutoCompleteFilterModeSpecifies 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.
CalendarDatePickerFormatSpecifies date formats for a CalendarDatePicker.
CalendarModeSpecifies values for the different modes of operation of a Calendar.
CalendarSelectionModeSpecifies values that describe the available selection modes for a Calendar.
ClickModeDefines how a Button reacts to clicks.
ColorComponentDefines a specific component within a color model.
ColorModelDefines the model used to represent colors.
ColorSpectrumComponentsDefines the two HSV color components displayed by a ColorSpectrum.
ColorSpectrumShapeDefines the shape of a ColorSpectrum.
ColorViewTabDefines a specific tab/page (subview) within the ColorView.
DataGridClipboardCopyModeDefines modes that indicates how DataGrid content is copied to the Clipboard.
DataGridEditActionUsed to specify action to take out of edit mode.
DataGridEditingUnit 
DataGridGridLinesVisibilityDetermines whether the inner cells' vertical/horizontal gridlines are shown or not.
DataGridHeadersVisibilityDetermines whether the row/column headers are shown or not.
DataGridLengthUnitType 
DataGridRowDetailsVisibilityMode 
DataGridSelectionModeDetermines the selection model
DockDefines the available docking modes for a control in a DockPanel.
ExpandDirectionDirection in which an Expander control opens.
FlatColorPalette.FlatColorDefines all colors in the FlatColorPalette.
FlyoutShowMode 
GridResizeBehaviorEnum to indicate what Columns or Rows the GridSplitter resizes.
GridResizeDirectionEnum to indicate whether GridSplitter resizes Columns or Rows.
GridUnitTypeDefines the valid units for a GridLength.
HsvComponentDefines a specific component in the HSV color model.
Location 
MaterialColorPalette.MaterialColorDefines all colors in the MaterialColorPalette.
MenuItemToggleTypeDefines how a MenuItem or NativeMenuItem reacts to clicks.
NativeMenuItemToggleType 
PlacementModeDefines the placement for a Popup control.
PlatformInhibitionTypeA platform specific behavior that can be inhibited.
RefreshVisualizerOrientationDefines constants that specify the orientation of a RefreshVisualizer.
RefreshVisualizerStateDefines constants that specify the state of a RefreshVisualizer
RgbComponentDefines a specific component in the RGB color model.
SelectionModeDefines the selection mode for a control which can select multiple items.
ShutdownModeDescribes the possible values for ShutdownMode.
SizeToContentDetermines how a Window will size itself to fit its content.
SpinDirectionRepresents spin directions that could be initiated by the end-user.
SplitViewDisplayModeDefines constants for how the SplitView Pane should display
SplitViewPanePlacementDefines constants for where the Pane should appear
SystemDecorationsDetermines system decorations (title bar, border, etc) for a Window
TickBarPlacementEnum which describes how to position the TickBar.
TickPlacementEnum which describes how to position the ticks in a Slider.
ValidSpinDirectionsRepresents spin directions that are valid.
WindowCloseReasonSpecifies the reason that a window was closed.
WindowClosingBehaviorDescribes how the Closing event behaves in the presence of child windows.
WindowEdge 
WindowResizeReasonDescribes the reason for a Resized event.
WindowStartupLocationDetermines the startup location of the window.
WindowStateDefines the minimized/maximized state of a Window.