<UserControl
    x:Class="Ursa.Demo.Pages.LoadingDemo"
    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"
    xmlns:u="https://irihi.tech/ursa"
    d:DesignHeight="450"
    d:DesignWidth="800"
    mc:Ignorable="d">
    <Grid RowDefinitions="Auto, Auto, *">
        <ToggleSwitch Name="s" Content="Loading" />
        <StackPanel Grid.Row="1" Orientation="Horizontal">
            <u:LoadingIcon Classes="Small" />
            <u:LoadingIcon />
            <u:LoadingIcon Classes="Large" />
        </StackPanel>
        <u:LoadingContainer
            Grid.Row="2"
            IsLoading="{Binding #s.IsChecked}"
            LoadingMessage="Loading...">
            <Calendar />
        </u:LoadingContainer>
    </Grid>
</UserControl>
