ToDoListView.axaml
M2ASCII.Views.ToDoListView
M2ASCII.ToDoListView
<UserControl xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignWidth="250" d:DesignHeight="450" x:Class="M2ASCII.ToDoListView"> <DockPanel> <Button DockPanel.Dock="Bottom" HorizontalAlignment="Stretch" HorizontalContentAlignment="Center"> Add Item </Button> <StackPanel> <CheckBox Margin="4">Walk the dog</CheckBox> <CheckBox Margin="4">Buy some milk</CheckBox> </StackPanel> </DockPanel></UserControl>
ToDoListView.axaml.cs
using Avalonia.Controls;namespace M2ASCII.Views;public partial class ToDoListView : UserControl{ public ToDoListView() { InitializeComponent(); }}