SplitView.IsPaneOpen 属性

定义

获取或设置一个值,该值指定是否将 SplitView 窗格扩展到其全宽。

public:
 property bool IsPaneOpen { bool get(); void set(bool value); };
bool IsPaneOpen();

void IsPaneOpen(bool value);
public bool IsPaneOpen { get; set; }
var boolean = splitView.isPaneOpen;
splitView.isPaneOpen = boolean;
Public Property IsPaneOpen As Boolean
<SplitView IsPaneOpen="bool" .../>
    

属性值

Boolean

bool

如果窗格展开到其全宽,则为 true;否则为 false。 默认值为 true

注解

此属性的效果受 DisplayMode 属性的值的影响。

DisplayMode 效果
内联 IsPaneOpen 为 true
Overlay 当 IsPaneOpen 为 false 时,窗格处于隐藏状态。
精简 当 IsPaneOpen 为 false 时,窗格会显示在其紧凑大小 (请参阅 CompactPaneLength) 。

适用于