You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mchsamples-.net-core/ex_052_006_problématique_6_UWP/MainPage.xaml

69 lines
3.1 KiB

<Page
x:Class="ex_052_006_problématique_6_UWP.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:ex_052_006_problématique_6_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}">
<Page.Resources>
<Style TargetType="TextBlock" x:Key="styleAnnotation">
<Setter Property="RenderTransformOrigin" Value="0.5,0.5"/>
<Setter Property="Foreground" Value="#FFFF5D11"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="FontStyle" Value="Italic"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="TextWrapping" Value="Wrap"/>
<Setter Property="TextAlignment" Value="Center"/>
<Setter Property="RenderTransform">
<Setter.Value>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform Angle="-34.695"/>
<TranslateTransform/>
</TransformGroup>
</Setter.Value>
</Setter>
</Style>
</Page.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Button Content="Lancer la recherche en mode synchrone"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Padding="5"
Click="Button_Click_1"
Grid.Column="1"/>
<Button Content="Lancer la recherche en mode asynchrone"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Padding="5" Grid.Row="1" Grid.Column="1"
Click="Button_Click_2"/>
<TextBlock Grid.Column="2" Name="mTextBlockSynchrone"/>
<TextBlock Grid.Column="2" Grid.Row="1" Name="mTextBlockAsynchrone"/>
<Button Content="Course-grained concurrency"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Padding="5" Grid.Row="2" Grid.Column="1"
Click="Button_Click_3"
Name="mButtonCGC"/>
<TextBlock Grid.Column="2" Grid.Row="2" Name="mTextBlockCourseGrainedConcurrency"/>
<TextBlock Text="beurk !" Style="{StaticResource styleAnnotation}"/>
<TextBlock Text="avec fonctions asynchrones !" Foreground="Green" Width="76" Grid.Row="1" Style="{StaticResource styleAnnotation}"/>
<TextBlock Text="méthode fréquemment utilisée avant C#5" Width="76" Grid.Row="2" Style="{StaticResource styleAnnotation}"/>
</Grid>
</Page>