Delen via


ListViewBase.ChoosingGroupHeaderContainer Event

Definition

Occurs when an item container is to be chosen for a data group.

// 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) 

Event Type

Remarks

You typically handle this event to enable accessibility. The group headers do not have an accessible name set by default. This event provides access to the header instance and lets you to set the AutomationProperties.Name attached property to an appropriate value.

If the container provided in the args is null, you can create a new header and provide it through the args.

Applies to