Dela via


SplitButton.Click Event

Definition

Occurs when a button control is clicked.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.SplitButton.Click (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

// Register
event_token Click(TypedEventHandler<SplitButton, SplitButtonClickEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
SplitButton::Click_revoker Click(auto_revoke_t, TypedEventHandler<SplitButton, SplitButtonClickEventArgs const&> const& handler) const;
public event TypedEventHandler<SplitButton,SplitButtonClickEventArgs> Click;
function onClick(eventArgs) { /* Your code */ }
splitButton.addEventListener("click", onClick);
splitButton.removeEventListener("click", onClick);
- or -
splitButton.onclick = onClick;
Public Custom Event Click As TypedEventHandler(Of SplitButton, SplitButtonClickEventArgs) 

Event Type

Applies to