Advertisement
prayzzz

Untitled

Aug 6th, 2013
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.52 KB | None | 0 0
  1. <Page
  2.    x:Class="Mensa.MainPage"
  3.    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4.    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5.    xmlns:local="using:Mensa"
  6.    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7.    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8.    DataContext="{Binding RelativeSource={RelativeSource Self}}"
  9.    d:DataContext="{Binding Source={d:DesignInstance Type=local:DesignTimeData, IsDesignTimeCreatable=True}}"
  10.    mc:Ignorable="d" Foreground="Black">
  11.  
  12.     <Grid Background="#FFCCCCCC">
  13.         <Grid.ColumnDefinitions>
  14.             <ColumnDefinition Width="120" />
  15.             <ColumnDefinition Width="*" />
  16.             <ColumnDefinition Width="10" />
  17.             <ColumnDefinition Width="*" />
  18.             <ColumnDefinition Width="120" />
  19.         </Grid.ColumnDefinitions>
  20.         <Grid.RowDefinitions>
  21.             <RowDefinition Height="100" />
  22.             <RowDefinition Height="40" />
  23.             <RowDefinition Height="*" />
  24.         </Grid.RowDefinitions>
  25.         <Rectangle Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="5" Grid.RowSpan="3" Fill="Orange" />
  26.         <TextBlock Text="Mensa Leipzig" Grid.Row="0" Grid.Column="1" Style="{StaticResource PageHeaderTextStyle}" Foreground="#FF17479E" />
  27.         <ProgressRing Name="ProgressRing" Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="{StaticResource MensaBlue}" />
  28.         <ListView Name="MensaList"
  29.                  ItemsSource="{Binding Mensae}"
  30.                  Background="{StaticResource ListViewBackground}"
  31.                  SelectionChanged="MensaListOnItemClick"
  32.                  Grid.Column="1"
  33.                  Grid.Row="2"
  34.                  ItemContainerStyle="{StaticResource MensaItemStyle}"
  35.                  HeaderTemplate="{StaticResource HeaderTemplate}"
  36.                  Header="Mensen">
  37.             <ListView.ItemContainerTransitions>
  38.                 <TransitionCollection>
  39.                     <EntranceThemeTransition />
  40.                 </TransitionCollection>
  41.             </ListView.ItemContainerTransitions>
  42.         </ListView>
  43.         <FlipView ItemsSource="{Binding MenuLists}"
  44.                  Grid.Column="3"
  45.                  Grid.Row="2"
  46.                  IsDoubleTapEnabled="False"
  47.                  IsHoldingEnabled="False"
  48.                  IsRightTapEnabled="False"
  49.                  ItemContainerStyle="{StaticResource MenuFlipItemStyle}">
  50.         </FlipView>
  51.     </Grid>
  52. </Page>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement