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 63 64
|
<phone:PhoneApplicationPage
x:Class="APP_WP_KBS.MainPage"
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:design="clr-namespace:APP_WP_KBS"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:conv="clr-namespace:APP_WP_KBS"
mc:Ignorable="d"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
SupportedOrientations="Portrait" Orientation="Portrait"
shell:SystemTray.IsVisible="True">
<phone:PhoneApplicationPage.Resources>
<conv:EtatConverter x:Key="EtatConverter" />
</phone:PhoneApplicationPage.Resources>
<!--LayoutRoot est la grille racine où tout le contenu de la page est placé-->
<Grid x:Name="LayoutRoot" Background="Transparent" ShowGridLines="True">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,0">
<TextBlock Text="MON APPLICATION" Style="{StaticResource PhoneTextNormalStyle}" Margin="12,0"/>
</StackPanel>
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
<Grid>
<ProgressBar x:Name="ProgresseBar" HorizontalAlignment="Left" Height="21" Margin="97,10,0,0" VerticalAlignment="Top" Width="331" IsIndeterminate="True" Visibility="Collapsed"/>
<ListBox x:Name="listeBoxDesIT" Margin="0 80 0 0" SelectionMode="Single" ItemsSource ="{Binding}" SelectionChanged="listeBoxDesIT_SelectionChanged">
<d:DesignProperties.DataContext>
<design:MainPageDesign />
</d:DesignProperties.DataContext>
<ListBox.ItemTemplate>
<DataTemplate>
<Border Background="#FFDEDEDE" CornerRadius="10" Margin="10">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Width="450">
<TextBlock HorizontalAlignment="Center" Text="{Binding NumIT}" FontSize="30" Foreground="Blue" Margin="10 10 200 10" />
<Image x:Name="MonImage" Source="{Binding Etat, Converter={StaticResource EtatConverter}}" Width="48" Height="48" />
</StackPanel>
</Border>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<TextBlock x:Name="Test" HorizontalAlignment="Left" Margin="41,44,0,0" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Top" Width="372"/>
</Grid>
</Grid>
</Grid>
</phone:PhoneApplicationPage> |
Partager