SplitButton.Click Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)