Share via


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
覆蓋 當 IsPaneOpen 為 false時,窗格會隱藏。
精簡 當 IsPaneOpen 為 false時,窗格會顯示在其精簡大小 (請參閱 CompactPaneLength) 。

適用於