<Page
    x:Class="ex_050_010_Threading_en_UWP.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:ex_050_010_Threading_en_UWP"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" Height="350" Width="525">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Button Click="Button_Click_1" Content="Lancer le travail dans le UI thread" Margin="5" HorizontalAlignment="Center" VerticalAlignment="Center" Padding="5"/>
        <ProgressBar Name="mProgressBar" Height="20" Margin="5" Grid.Column="1" Maximum="10"/>

        <Button Click="Button_Click_2" Content="Lancer le travail dans un worker thread" Margin="5" 
                HorizontalAlignment="Center" VerticalAlignment="Center" Padding="5" Grid.Row="1"/>
        <ProgressBar Name="mProgressBar2" Height="20" Margin="5" Grid.Column="1" Maximum="10" Grid.Row="1"/>

        <Button Click="Button_Click_3" Content="Avec un contexte de synchronisation" Margin="5" 
                HorizontalAlignment="Center" VerticalAlignment="Center" Padding="5" Grid.Row="2"/>
        <ProgressBar Name="mProgressBar3" Height="20" Margin="5" Grid.Column="1" Maximum="10" Grid.Row="2"/>
    </Grid>
</Page>
