Back to Devexpress

SimpleButton.Clicked Event

mobilecontrols-devexpress-dot-xamarinforms-dot-editors-dot-simplebutton-f24043c9.md

latest2.2 KB
Original Source

SimpleButton.Clicked Event

Occurs when a user taps and releases the button.

Namespace : DevExpress.XamarinForms.Editors

Assembly : DevExpress.XamarinForms.Editors.dll

NuGet Package : DevExpress.XamarinForms.Editors

Declaration

csharp
public event EventHandler Clicked

Event Data

The Clicked event's data class is EventArgs.

Remarks

Handle the Clicked event to specify an action that occurs when a user taps the button.

You can also use the Command property.

Example

This example shows how to customize button appearance and handle the button click event.

|

Button State

|

Default Appearance

|

Custom Appearance

| | --- | --- | --- | |

Default

|

|

| |

Pressed

|

|

| |

Disabled

|

|

|

  1. Add the delete.png icon file to your platform-specific projects:

  2. Use the following properties to adjust the button’s appearance and handle the Clicked event to clear label1 on button tap:

See Also

Command Property

CommandParameter Property

SimpleButton Class

SimpleButton Members

DevExpress.XamarinForms.Editors Namespace