I'm using the new SplitView
control to create a hamburger menu in my UWP
app.
My question is if I can define a relative or percentage value to its OpenPaneLength
property? I want to achieve that the width of the SplitView
's Pane
is for example 80% of the device's width.
Thank you!
This is the XAML
code of the SplitView
<SplitView x:Name="ShellSplitView"
DisplayMode="Overlay"
IsPaneOpen="False"
OpenPaneLength="300">
<SplitView.Pane>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<RadioButton x:Name="SettingsButton"
Grid.Row="1"
Content="Settings"
Checked="OnSettingsButtonChecked" />
</Grid>
</SplitView.Pane>
<SplitView.Content>...</SplitView.Content>
</SplitView>