共用方式為


Popup.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 = popup.shouldConstrainToRootBounds;
popup.shouldConstrainToRootBounds = boolean;
Public Property ShouldConstrainToRootBounds As Boolean

屬性值

Boolean

bool

如果快顯應該顯示在 XAML 根目錄的界限內,則為 true;否則為 false。 預設值為 True

備註

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

適用於

另請參閱