Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <phone:PhoneApplicationPage x:Class="MvvmLight5.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:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:ignore="http://www.ignore.com"
- mc:Ignorable="d ignore"
- FontFamily="{StaticResource PhoneFontFamilyNormal}"
- FontSize="{StaticResource PhoneFontSizeNormal}"
- Foreground="{StaticResource PhoneForegroundBrush}"
- SupportedOrientations="Portrait"
- Orientation="Portrait"
- shell:SystemTray.IsVisible="True"
- DataContext="{Binding Main, Source={StaticResource Locator}}">
- <!--LayoutRoot is the root grid where all page content is placed-->
- <Grid x:Name="LayoutRoot"
- Background="Transparent">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <!--TitlePanel contains the name of the application and page title-->
- <StackPanel x:Name="TitlePanel"
- Grid.Row="0"
- Margin="12,17,0,28">
- <TextBlock Text="MY APPLICATION"
- Style="{StaticResource PhoneTextNormalStyle}"
- Margin="12,0" />
- <TextBlock Text="page name"
- Margin="9,-7,0,0"
- Style="{StaticResource PhoneTextTitle1Style}" />
- </StackPanel>
- <!--ContentPanel - place additional content here-->
- <Grid x:Name="ContentPanel"
- Grid.Row="1"
- Margin="12,0,12,0">
- <TextBlock Text="{Binding theText}">
- </TextBlock>
- <ListBox x:Name="myListBox" HorizontalAlignment="Left" Height="100" ItemsSource="{Binding theList}"
- VerticalAlignment="Top" Width="200">
- <ListBox.ItemTemplate>
- <DataTemplate>
- <ItemsControl ItemsSource="{Binding theList}">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <StackPanel Orientation="Horizontal" Width="auto">
- <TextBlock Text="{Binding Path=Key}" />
- <TextBlock Text="{Binding Path=Value}" />
- </StackPanel>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- </DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
- <ListBox x:Name="myListBox2" HorizontalAlignment="Left" Height="100"
- VerticalAlignment="Bottom" Width="200">
- <ListBox.ItemTemplate>
- <DataTemplate>
- <ItemsControl ItemsSource="{Binding}">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <StackPanel Orientation="Horizontal" Width="auto">
- <TextBlock Text="{Binding Path=Key}" />
- <TextBlock Text="{Binding Path=Value}" />
- </StackPanel>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- </DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
- <TextBlock Text="{Binding WelcomeTitle}"
- Style="{StaticResource PhoneTextNormalStyle}"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- TextAlignment="Center"
- TextWrapping="Wrap"
- FontSize="40" />
- </Grid>
- </Grid>
- </phone:PhoneApplicationPage>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement