Advertisement
Guest User

XAML Code

a guest
Aug 12th, 2016
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.20 KB | None | 0 0
  1.     <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
  2.         <Grid.RowDefinitions>
  3.             <RowDefinition Height="Auto" />
  4.             <RowDefinition Height="*" />
  5.         </Grid.RowDefinitions>
  6.  
  7.         <SplitView Name="mySplitView" Grid.Row="1" OpenPaneLength="240"
  8.                   DisplayMode="CompactOverlay"  CompactPaneLength="36">
  9.             <SplitView.Pane>
  10.                 <Grid>
  11.                     <Grid.RowDefinitions>
  12.                         <RowDefinition Height="Auto" />
  13.                         <RowDefinition Height="*" />
  14.                         </Grid.RowDefinitions>
  15.                         <ListBox x:Name="menu"  Grid.Row ="2" SelectionMode="Single" SelectionChanged="ListBox_SelectionChanged">
  16.                         <ListBoxItem IsHoldingEnabled="False" IsTapEnabled="False" HorizontalAlignment="Left" VerticalAlignment="Top" Padding="0" UseLayoutRounding="True" Width="36" Height="36" >
  17.                             <Button x:Name="HamburgerButton2"
  18.                    FontFamily="Segoe MDL2 Assets" FontSize="16"
  19.                    Content="&#xE700;" Click="HamburgerButton_Click"  Margin="0" Background="{ThemeResource ListBoxItemSelectedBackgroundThemeBrush}" VerticalAlignment="Center" Width="38" Height="36" HorizontalAlignment="Center" Padding="0"/>
  20.                         </ListBoxItem>
  21.                         <ListBoxItem Name="MyPage" Padding="10,10,15,10">
  22.                             <StackPanel Orientation="Horizontal">
  23.                                 <TextBlock FontSize="16" FontFamily="Segoe MDL2 Assets" Text="&#xE77B;" />
  24.                                 <TextBlock FontSize="16" Text="Моя страница" Margin="10 0 0 0" />
  25.                             </StackPanel>
  26.                         </ListBoxItem>
  27.                         <ListBoxItem Name="Groups" Padding="10,10,15,10">
  28.                             <StackPanel Orientation="Horizontal">
  29.                                 <TextBlock FontSize="16" FontFamily="Segoe MDL2 Assets" Text="&#xE716;"/>
  30.                                 <TextBlock FontSize="16" Text="Сообщества" Margin="10 0 0 0" />
  31.                             </StackPanel>
  32.                         </ListBoxItem>
  33.                     </ListBox>
  34.                     <ListBox VerticalAlignment="Center" HorizontalAlignment="Center" Grid.RowSpan="2" SelectionChanged="ListBox_SelectionChanged">
  35.                         <ListBoxItem Name="Login">
  36.                             <StackPanel Orientation="Horizontal">
  37.                                 <Image x:Name="Login_Image" Visibility="Collapsed" Width="30" Height="30" Margin="0" HorizontalAlignment="Left"/>
  38.                                 <TextBlock x:Name="Login_Icon" FontSize="16" FontFamily="Segoe MDL2 Assets" Text="&#xE8FA;"/>
  39.                                 <TextBlock x:Name="Login_Text" FontSize="16" Text="Войти" Margin="10 0 0 0"/>
  40.                             </StackPanel>
  41.                         </ListBoxItem>
  42.                     </ListBox>
  43.                 </Grid>
  44.                
  45.             </SplitView.Pane>
  46.             <SplitView.Content>
  47.                 <Frame Name="Content"/>
  48.             </SplitView.Content>
  49.         </SplitView>
  50.     </Grid>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement