1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
| <phone:PhoneApplicationPage
x:Class="WindowsPhoneApplication1.Jouer"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
SupportedOrientations="Landscape" Orientation="Landscape"
mc:Ignorable="d" d:DesignHeight="480" d:DesignWidth="728"
shell:SystemTray.IsVisible="True">
<!--LayoutRoot est la grille racine où tout le contenu de la page est placé-->
<Grid x:Name="LayoutRoot" Background="Transparent" Height="538" Width="728">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!--TitlePanel contient le nom de l'application et le titre de la page-->
<StackPanel x:Name="TitlePanel" Margin="12,17,12,28" Grid.Row="0">
<TextBlock x:Name="ApplicationTitle" Text="Mouton'Z" Style="{StaticResource PhoneTextNormalStyle}"/>
<TextBlock x:Name="SousTitre" Text="Jouer une carte" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
</StackPanel>
<!--ContentPanel - placez tout contenu supplémentaire ici-->
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0" Grid.ColumnSpan="2">
<Button Content="Carte 1" Height="100" HorizontalAlignment="Left" Margin="47,41,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click_1" />
<Button Content="Carte 2" Height="100" HorizontalAlignment="Left" Margin="153,41,0,0" Name="button2" VerticalAlignment="Top" Width="75" Click="button2_Click" />
<Button Content="Carte 3" Height="100" HorizontalAlignment="Left" Margin="269,41,0,0" Name="button3" VerticalAlignment="Top" Width="75" Click="button3_Click" />
<Button Content="Carte 4" Height="100" HorizontalAlignment="Left" Margin="389,41,0,0" Name="button4" VerticalAlignment="Top" Width="75" Click="button4_Click" />
<Button Content="Carte 5" Height="100" HorizontalAlignment="Left" Margin="499,41,0,0" Name="button5" VerticalAlignment="Top" Width="75" Click="button5_Click" />
<Button Content="Carte 6" Height="100" HorizontalAlignment="Left" Margin="605,41,0,0" Name="button6" VerticalAlignment="Top" Width="75" Click="button6_Click" />
<Button Content="Carte 7" Height="100" HorizontalAlignment="Left" Margin="47,170,0,0" Name="button7" VerticalAlignment="Top" Width="75" Click="button7_Click" />
<Button Content="Carte 8" Height="100" HorizontalAlignment="Left" Margin="153,170,0,0" Name="button8" VerticalAlignment="Top" Width="75" Click="button8_Click" />
<Button Content="Carte 9" Height="100" HorizontalAlignment="Left" Margin="269,170,0,0" Name="button9" VerticalAlignment="Top" Width="75" Click="button9_Click" />
<Button Content="Carte 10" Height="100" HorizontalAlignment="Left" Margin="389,170,0,0" Name="button10" VerticalAlignment="Top" Width="75" Click="button10_Click" />
<Button Content="Carte 11" Height="100" HorizontalAlignment="Left" Margin="499,170,0,0" Name="button11" VerticalAlignment="Top" Width="75" Click="button11_Click" />
<Button Content="Carte 12" Height="100" HorizontalAlignment="Left" Margin="605,170,0,0" Name="button12" VerticalAlignment="Top" Width="75" Click="button12_Click" />
</Grid>
</Grid>
<!--Exemple de code illustrant l'utilisation de l'ApplicationBar-->
<!--<phone:PhoneApplicationPage.ApplicationBar>
<shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
<shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Bouton 1"/>
<shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Bouton 2"/>
<shell:ApplicationBar.MenuItems>
<shell:ApplicationBarMenuItem Text="ÉlémentMenu 1"/>
<shell:ApplicationBarMenuItem Text="ÉlémentMenu 2"/>
</shell:ApplicationBar.MenuItems>
</shell:ApplicationBar>
</phone:PhoneApplicationPage.ApplicationBar>-->
</phone:PhoneApplicationPage> |
Partager