ListViewBase.ChoosingGroupHeaderContainer 事件

定义

在为数据组选择项容器时发生。

// Register
event_token ChoosingGroupHeaderContainer(TypedEventHandler<ListViewBase, ChoosingGroupHeaderContainerEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
ListViewBase::ChoosingGroupHeaderContainer_revoker ChoosingGroupHeaderContainer(auto_revoke_t, TypedEventHandler<ListViewBase, ChoosingGroupHeaderContainerEventArgs const&> const& handler) const;
public event TypedEventHandler<ListViewBase,ChoosingGroupHeaderContainerEventArgs> ChoosingGroupHeaderContainer;
function onChoosingGroupHeaderContainer(eventArgs) { /* Your code */ }
listViewBase.addEventListener("choosinggroupheadercontainer", onChoosingGroupHeaderContainer);
listViewBase.removeEventListener("choosinggroupheadercontainer", onChoosingGroupHeaderContainer);
- or -
listViewBase.onchoosinggroupheadercontainer = onChoosingGroupHeaderContainer;
Public Custom Event ChoosingGroupHeaderContainer As TypedEventHandler(Of ListViewBase, ChoosingGroupHeaderContainerEventArgs) 

事件类型

注解

通常处理此事件以启用辅助功能。 默认情况下,组标头没有设置辅助名称。 此事件提供对标头实例的访问权限,并允许将 AutomationProperties.Name 附加属性设置为适当的值。

适用于