<Window x:Class="MultiThreadingSample.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        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:ui="http://schemas.modernwpf.com/2019"
        xmlns:local="clr-namespace:MultiThreadingSample"
        mc:Ignorable="d"
        Title="MainWindow" Height="400" Width="300"
        ui:WindowHelper.UseModernWindowStyle="True">
    <Grid>
        <ui:SimpleStackPanel Spacing="20" HorizontalAlignment="Center" VerticalAlignment="Center">
            <ui:ProgressRing Width="60" Height="60" IsActive="{Binding IsActive, RelativeSource={RelativeSource AncestorType=Window}}" />
            <ui:SimpleStackPanel HorizontalAlignment="Center" Spacing="12">
                <Button Content="Toggle App Theme" HorizontalAlignment="Stretch" Click="ToggleAppThemeHandler" />
                <Button Content="Toggle Window Theme" HorizontalAlignment="Stretch" Click="ToggleWindowThemeHandler" />
                <Button Content="New Window" HorizontalAlignment="Stretch" Click="NewWindowHandler" />
            </ui:SimpleStackPanel>
        </ui:SimpleStackPanel>
    </Grid>
</Window>
