Button.Flyout 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會取得或設定與此按鈕相關的飛出視窗。
public:
property FlyoutBase ^ Flyout { FlyoutBase ^ get(); void set(FlyoutBase ^ value); };
FlyoutBase Flyout();
void Flyout(FlyoutBase value);
public FlyoutBase Flyout { get; set; }
var flyoutBase = button.flyout;
button.flyout = flyoutBase;
Public Property Flyout As FlyoutBase
<Button>
<Button.Flyout>flyout</Button.Flyout>
</Button>
- or -
<Button Flyout="{StaticResurce flyoutResourceKey"/>
屬性值
與此按鈕相關的飛出(若有);否則為 零。 預設是 null。
備註
預設情況下,設定為 Flyout 屬性值的 flyout 會在點擊按鈕或以其他方式呼叫時顯示,你不需要呼叫方法來顯示。 這與透過 FlyoutBase 指派的飛出行為不同。附加飛出附加屬性;這些飛出必須透過在飛出實例上呼叫 ShowAt 或靜態的 ShowAttachedFlyout 方法來明確顯示。