Перейти к основному содержимому
Версия: 0.10.x

Controls

Avalonia provides following groups of controls:

Layout

Layout controls provide ability for developer to arrange child controls according to specific rules.

Border

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

Canvas

A panel that displays child controls at arbitrary locations.

DockPanel

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

Expander

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

Grid

A flexible grid area that consists of columns and rows.

GridSplitter

Redistributes space between columns or rows of a Grid control.

Panel

Base class for controls that can contain multiple children.

RelativePanel

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

ScrollBar

A scrollbar control.

ScrollViewer

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

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.

UniformGrid

A panel with uniform column and row sizes.

Window

A top-level window.

WrapPanel

Positions child elements in sequential position from left to right, breaking content to the next line at the edge of the containing box.

Buttons

Button

A button control.

RepeatButton

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

RadioButton

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

ToggleButton

Represents a control that a user can select (check) or clear (uncheck).

ButtonSpinner

Represents a spinner control that includes two Buttons

Data Display

These controls helps display data, either in tabular or list form.

DataGrid

Displays data in a customizable grid.

ItemsControl

Displays a collection of items.

ItemsRepeater

Represents a data-driven collection control that incorporates a flexible layout system, custom views, and virtualization.

ListBox

An items control in which individual items can be selected.

Text

Controls for displaying and editing text

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.

TextBlock

A control that displays a block of text.

TextBox

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

MaskedTextBox

Represents a control that can be used to display or edit text format it uses a mask to distinguish between proper and improper user input format.

Value selectors

CheckBox

A check box control.

ComboBox

A drop-down list control.

Slider

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

Images

These controls display bitmap or vector images.

DrawingImage

Displays a vector image.

Image

Displays a bitmap image.

Date and Time

Set of controls which gives you ability display display and select dates, point of time, or display calendar..

Calendar

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

CalendarDatePicker

A control for selecting dates with a calendar drop-down.

DatePicker

A control to allow the user to select a date.

TimePicker

A control to allow the user to select a time.

ContextMenu

A context menu attached to a control.

A top-level menu control.