Use this reference to design operational UI where correctness matters more than decoration.
Primary APIs:
TextBox, ComboBox, AutoCompleteBoxDatePicker, CalendarDatePicker, NumericUpDownCheckBox, ToggleSwitch, RadioButtonDataValidationErrorsListBox, TreeView, ScrollViewer, GridThis file covers:
Forms should optimize for completion accuracy:
<StackPanel xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Spacing="12">
<TextBlock Classes="section-title" Text="Schedule rollout" />
<TextBox Watermark="Release name"
Text="{CompiledBinding ReleaseName}" />
<CalendarDatePicker SelectedDate="{CompiledBinding StartDate}" />
<NumericUpDown Value="{CompiledBinding MaxParallelNodes}"
Minimum="1"
Maximum="20" />
<AutoCompleteBox Text="{CompiledBinding Owner}"
MinimumPrefixLength="2"
Watermark="Owner" />
</StackPanel>
Dense UI needs stronger structure, not more styling noise.
Rules:
<Grid xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
ColumnDefinitions="Auto,*,Auto"
RowDefinitions="Auto,Auto,*"
RowSpacing="12"
ColumnSpacing="12">
<TextBlock Grid.ColumnSpan="3"
Classes="title"
Text="Environment health" />
<ComboBox Grid.Row="1"
Width="220"
SelectedItem="{CompiledBinding SeverityFilter}" />
<TextBox Grid.Row="1"
Grid.Column="1"
Watermark="Search incidents"
Text="{CompiledBinding SearchText}" />
<Button Grid.Row="1"
Grid.Column="2"
Content="Refresh" />
<ListBox Grid.Row="2"
Grid.ColumnSpan="3"
ItemContainerTheme="{StaticResource DenseListItemTheme}" />
</Grid>
<DataValidationErrors xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<TextBox Text="{CompiledBinding ReleaseName}" />
</DataValidationErrors>
Guidance:
Do:
Do not: