<Window x:Class="UsingAsync.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <TextBox x:Name="headerListTextBox" Margin="10,42,10.4,12.2" TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Visible"/>
        <Button Content="Async Fetch" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="75" Click="fetchHeadersButton_Click"/>
        <Button Content="Sync Fetch" HorizontalAlignment="Left" Margin="90,10,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click_2"/>
        <Button Content="Async the Hard Way" HorizontalAlignment="Left" Margin="170,10,0,0" VerticalAlignment="Top" Width="121" Click="Button_Click_1"/>
        <Button Content="Configure Await" HorizontalAlignment="Left" Margin="10" VerticalAlignment="Top" Width="97" Click="OnFetchButtonClick" Grid.Row="1"/>
        <Grid Margin="123,6.2,57.4,5.4" Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <Label Content="_File:" VerticalAlignment="Center"/>
            <TextBox x:Name="fileTextBox" Height="23" Margin="12.4,4,13.8,0" TextWrapping="Wrap" VerticalAlignment="Top" Grid.Column="1"/>
            <Label Content="_URL:" Grid.Column="2" VerticalAlignment="Center"/>
            <TextBox x:Name="urlTextBox" Height="23" Margin="20.4,5,-0.4,0" TextWrapping="Wrap" VerticalAlignment="Top" Grid.Column="3"/>

        </Grid>
        <Button Content="Fetch and Show" HorizontalAlignment="Left" Margin="296,10,0,0" VerticalAlignment="Top" Width="97" Click="Button_Click_3"/>

    </Grid>
</Window>
