天天看点

UWP入门(七)--SplitView详解与页面跳转

<a href="https://docs.microsoft.com/zh-cn/windows/uwp/controls-and-patterns/split-view">官方文档,逼着自己用英文看,UWP开发离不开官方文档</a>

拆分视图控件具有一个可展开/可折叠的窗格和一个内容区域

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.

pane不打开是隐藏,打开的时候pane覆盖掉content

Inline

The pane is always visible and doesn’t overlay the content area. The pane and content areas divide the available screen real estate.

pane不打开是隐藏,打开的时候pane推开content

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.

不打开时,pane留下一点宽度,默认48px,可以用CompactPaneLength修改

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.

方便你找代码,直接目录跳转