Here are the steps:
Now go to the MainPage.xaml and define your rows in the Grid by using Grid.RowDefination and assign a height to these rows. In our case we have created two rows of Height auto and *.
- <Grid.RowDefinitions>
- <RowDefinition Height="auto" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
Step 3:
Once you've done with your rows add splitview in your app by using SplitView and the following lines of code. The first row in which you define height property to auto is for RelativePanel and hamburger button and the next row is for the listbox and listboxitems.
Here's the code for that,
- <RelativePanel>
- <Button Width="60" Height="45" Name="hamburgerbtn" Click="hamburgerbtn_Click" FontFamily="Segoe MDL2 Assets" Content="" Margin="0,30,0,0"></Button>
- </RelativePanel>
- <SplitView Grid.Row="1" Name="mysplitview1" DisplayMode="CompactOverlay" OpenPaneLength="300" CompactPaneLength="60">
- <SplitView.Pane>
- <ListBox>
- <ListBoxItem>
- <StackPanel Orientation="Horizontal">
- <TextBlock FontSize="45" FontFamily="Segoe MDL2 Assets" Text=""></TextBlock>
- <TextBlock Margin="30,0,0,0" FontSize="25" Text="Search something"></TextBlock>
- </StackPanel>
- </ListBoxItem>
- <ListBoxItem>
- <StackPanel Orientation="Horizontal">
- <TextBlock FontSize="45" FontFamily="Segoe MDL2 Assets" Text=""></TextBlock>
- <TextBlock Margin="30,0,0,0" FontSize="25" Text="Record something"></TextBlock>
- </StackPanel>
- </ListBoxItem>
- </ListBox>
- </SplitView.Pane>
- </SplitView>








Markus ErhardtPosted Nov 29, 2018, 4:49 AM
Hello, is there a way to throw the Icon away with the three bars and put my icons instead?
Ehsan SajjadPosted Feb 18, 2016, 1:17 PM
Nice one
Mohammed IbrahimPosted Feb 1, 2016, 2:10 PM
nice
Santhakumar MunuswamyPosted Feb 1, 2016, 1:55 PM
Thanks for nice article
Hemant SrivastavaPosted Feb 1, 2016, 1:48 PM
Is "Three lines" menu called Hamburger menu?
Sibeesh VenuPosted Feb 1, 2016, 8:03 AM
Nice Share
Ammar ShaukatPosted Feb 1, 2016, 2:17 AM
Good