語言

FlyoutBase.ShouldConstrainToRootBounds 屬性

定義

取得或設定一個值,指示飛出是否應該在 XAML 根的範圍內顯示。

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

void ShouldConstrainToRootBounds(bool value);
public bool ShouldConstrainToRootBounds { get; set; }
var boolean = flyoutBase.shouldConstrainToRootBounds;
flyoutBase.shouldConstrainToRootBounds = boolean;
Public Property ShouldConstrainToRootBounds As Boolean

屬性值

Boolean

bool

若飛出必須在 XAML 根的範圍內顯示,則為 true;否則,則為錯誤。

備註

此屬性自 1.4 版本起已支援 Windows 應用程式 SDK 應用程式。 在此之前, IsConstrainedToRootBounds 屬性總是 成立。

適用於

另請參閱