FlyoutBase.ShouldConstrainToRootBounds 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個值,指示飛出是否應該在 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 屬性總是 成立。