共用方式為


Expander.Collapsed 事件

定義

展開器 的內容區域隱藏時發生。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

/// [Windows.Foundation.Metadata.Experimental]
/// [add: Windows.Foundation.Metadata.Experimental]
/// [remove: Windows.Foundation.Metadata.Experimental]
// Register
event_token Collapsed(TypedEventHandler<Expander, ExpanderCollapsedEventArgs const&> const& handler) const;

// Revoke with event_token
void Collapsed(event_token const* cookie) const;

// Revoke with event_revoker
Expander::Collapsed_revoker Collapsed(auto_revoke_t, TypedEventHandler<Expander, ExpanderCollapsedEventArgs const&> const& handler) const;
// Register
event_token Collapsed(TypedEventHandler<Expander, ExpanderCollapsedEventArgs const&> const& handler) const;

// Revoke with event_token
void Collapsed(event_token const* cookie) const;

// Revoke with event_revoker
Expander::Collapsed_revoker Collapsed(auto_revoke_t, TypedEventHandler<Expander, ExpanderCollapsedEventArgs const&> const& handler) const;
[Windows.Foundation.Metadata.Experimental]
[add: Windows.Foundation.Metadata.Experimental]
[remove: Windows.Foundation.Metadata.Experimental]
public event TypedEventHandler<Expander,ExpanderCollapsedEventArgs> Collapsed;
public event TypedEventHandler<Expander,ExpanderCollapsedEventArgs> Collapsed;
Public Custom Event Collapsed As TypedEventHandler(Of Expander, ExpanderCollapsedEventArgs) 

事件類型

屬性

適用於