<Window x:Class="WpfAndAsync.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="WPF and async" Height="150" Width="200" ResizeMode="CanResizeWithGrip">
    <Grid>
        <StackPanel>
            <CheckBox x:Name="useAwaitAsync" IsChecked="True" Content="Use await/async" Margin="5"/>
            <Button x:Name="countButton" Content="Start counting" 
                    HorizontalAlignment="Left" Click="countButton_Click" Margin="5"/>
            <TextBlock x:Name="progress" HorizontalAlignment="Left" Margin="5" />
        </StackPanel>
    </Grid>
</Window>
