There is a stanitsa on which the menu is a "gambourgeter". Implemented like this:
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <RelativePanel> <Button x:Name="HamburgerButton" RelativePanel.AlignLeftWithPanel="True" FontFamily="Segoe MDL2 Assets" FontSize="30" Content="" Click="HamburgerButton_Click" Background="#FF238072"/> <TextBlock Name="TitleTextBlock" RelativePanel.RightOf="HamburgerButton" FontSize="26" FontWeight="Bold" Margin="30 5 0 0" /> </RelativePanel> <SplitView Name="mySplitView" Grid.Row="1" OpenPaneLength="240" DisplayMode="CompactInline" CompactPaneLength="50" Loading="mySplitView_Loading"> <SplitView.Pane> <ListBox x:Name="menu" SelectionMode="Single" SelectionChanged="ListBox_SelectionChanged"> <ListBoxItem Name="MyPage"> <StackPanel Orientation="Horizontal"> <TextBlock FontSize="28" FontFamily="Segoe MDL2 Assets" Text="" /> <TextBlock FontSize="24" Text="Моя страница" Margin="10 0 0 0" /> </StackPanel> </ListBoxItem> <ListBoxItem Name="Groups"> <StackPanel Orientation="Horizontal"> <TextBlock FontSize="28" FontFamily="Segoe MDL2 Assets" Text=""/> <TextBlock FontSize="24" Text="Сообщества" Margin="10 0 0 0" /> </StackPanel> </ListBoxItem> <ListBoxItem Name="Login" VerticalAlignment="Bottom"> <StackPanel Orientation="Horizontal"> <Image x:Name="Login_Image" Visibility="Collapsed" Width="30" Height="30" Margin="0" HorizontalAlignment="Left"/> <TextBlock x:Name="Login_Icon" FontSize="28" FontFamily="Segoe MDL2 Assets" Text=""/> <TextBlock x:Name="Login_Text" FontSize="24" Text="Войти" Margin="10 0 0 0"/> </StackPanel> </ListBoxItem> </ListBox> </SplitView.Pane> <SplitView.Content> <Frame Name="Content" /> </SplitView.Content> </SplitView> </Grid>
I would like to get a menu that will leave completely (in my case, there is a black piece to the right of the "hamburger" button) as here and the element pressed to the bottom:
I tried to remove the TextBlock to the right of the button and play a little with the attributes until nothing came out worthwhile.