Expander.Collapsed 事件

定义

隐藏 扩展器 的内容区域时发生。

本文档适用于 Windows 应用 SDKWinUI 的 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) 

事件类型

属性

适用于