Button
Introduction
The Button control providing an event for handling clicks.
Code Example: Adding a Button
The following code adds a button which increments every time it is clicked:
Clicking Programatically
Clicking can be performed programatically by calling PerformClick. The following example shows how to click a button when the Enter key is pressed:
Optionally you can pass the input device to the PerformClick method:
Last updated
Was this helpful?