Share via


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;否則為 false

備註

自 1.4 版起,Windows 應用程式 SDK 應用程式支援此屬性。 在之前, IsConstrainedToRootBounds 屬性一律 為 true

適用於

另請參閱