ArcGIS Pro 2.8 API Reference Guide
OnClick Method (Button)

ArcGIS.Desktop.Framework.Contracts Namespace > Button Class : OnClick Method
Called when the Button is clicked.
Syntax
protected internal virtual void OnClick()
Protected Friend Overridable Sub OnClick() 
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Button Class
Button Members