SplitView
Represents a container with two views; one view for the main content and another view that is typically used for navigation commands.
1
<SplitView IsPaneOpen="True"
2
DisplayMode="Inline"
3
OpenPaneLength="296">
4
<SplitView.Pane>
5
<TextBlock Text="Pane"
6
FontSize="24"
7
VerticalAlignment="Center"
8
HorizontalAlignment="Center"/>
9
</SplitView.Pane>
10
​
11
<Grid>
12
<TextBlock Text="Content"
13
FontSize="24"
14
VerticalAlignment="Center"
15
HorizontalAlignment="Center"/>
16
</Grid>
17
</SplitView>
Copied!
A split view's content area is always visible. The pane can expand and collapse or remain in an open state, and can present itself from either the left side or right side of an app window. The pane has four modes:
    Overlay
    The pane is hidden until opened. When open, the pane overlays the content area.
    Inline
    The pane is always visible and doesn't overlay the content area. The pane and content areas divide the available screen real estate.
    CompactOverlay
    A narrow portion of the pane is always visible in this mode, which is just wide enough to show icons. The default closed pane width is 48px, which can be modified with CompactPaneLength. If the pane is opened, it will overlay the content area.
    CompactInline
    A narrow portion of the pane is always visible in this mode, which is just wide enough to show icons. The default closed pane width is 48px, which can be modified with CompactPaneLength. If the pane is opened, it will reduce the space available for content, pushing the content out of its way.

API Reference

​SplitView​

Source code

​SplitView.cs​
Last modified 2mo ago
Export as PDF
Copy link