Back to Devexpress

SimpleButton.PressedIconColor Property

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

latest2.4 KB
Original Source

SimpleButton.PressedIconColor Property

Specifies the icon color for the button in a pressed state.

Namespace : DevExpress.XamarinForms.Editors

Assembly : DevExpress.XamarinForms.Editors.dll

NuGet Package : DevExpress.XamarinForms.Editors

Declaration

csharp
public Color PressedIconColor { get; set; }

Property Value

TypeDescription
Color

Icon color.

|

Remarks

The button gets a color for its icon from the applied theme. Use the PressedIconColor property to apply a custom color to the icon of the button in a pressed state. If you need the pressed button to display the icon in its original color, set the PressedIconColor property to Color.Default.

To specify the icon color for the button in an unpressed state, use the IconColor 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

SimpleButton Class

SimpleButton Members

DevExpress.XamarinForms.Editors Namespace