Advertisement
andrzejiwaniuk

Język XAML i Hamburger Menu w Windows 10

Aug 27th, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.42 KB | None | 0 0
  1. <Page
  2.     x:Class="App4.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:App4"
  6.     xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7.     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8.     mc:Ignorable="d">
  9.     <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
  10.        <SplitView x:Name="MySplitView" DisplayMode="CompactOverlay" IsPaneOpen="False" CompactPaneLength="50" OpenPaneLength="150">
  11.            <SplitView.Pane>
  12.                <StackPanel Background="Azure">
  13.                     <Button x:Name="HamburgerButton" FontFamily="Segoe MDL2 Assets" Content="&#xE700;" Width="50" Height="50"       Background="Transparent" Click="HamburgerButton_Click"/>
  14.                    <StackPanel Orientation="Horizontal">
  15.                        <Button x:Name="PrzyciskMenu1" FontFamily="Segoe MDL2 Assets" Content="&#xE825;" Width="50" Height="50" Background="Transparent"/>
  16.                           <TextBlock Text="Przycisk 1" FontSize="18" VerticalAlignment="Center" />
  17.                        
  18.                     </StackPanel>
  19.                    <StackPanel Orientation="Horizontal">
  20.                        <Button x:Name="PrzyciskMenu2" FontFamily="Segoe MDL2 Assets" Content="&#xE825;" Width="50" Height="50" Background="Transparent"/>
  21.                        <TextBlock Text="Przycisk 2" FontSize="18" VerticalAlignment="Center" />
  22.                     </StackPanel>
  23.                    <StackPanel Orientation="Horizontal">
  24.                        <Button x:Name="PrzyciskMenu3" FontFamily="Segoe MDL2 Assets" Content="&#xE825;" Width="50" Height="50" Background="Transparent"/>
  25.                        <TextBlock Text="Przycisk 3" FontSize="18" VerticalAlignment="Center" />
  26.                     </StackPanel>
  27.                </StackPanel>
  28.            </SplitView.Pane>
  29.            <SplitView.Content>
  30.                <Grid Background="Aqua">
  31.                    <TextBlock Text="Witajcie" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="175,45,362,295" RenderTransformOrigin="2.469,3.05"/>
  32.                    <ComboBox x:Name="comboBox1" HorizontalAlignment="Left" Margin="343,95,0,0" VerticalAlignment="Top" Width="120"/>
  33.                 </Grid>
  34.            </SplitView.Content>
  35.            
  36.         </SplitView>
  37.     </Grid>
  38. </Page>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement