mobilecontrols-devexpress-dot-xamarinforms-dot-editors-dot-simplebutton-048f742d.md
Specifies the color for the button icon.
Namespace : DevExpress.XamarinForms.Editors
Assembly : DevExpress.XamarinForms.Editors.dll
NuGet Package : DevExpress.XamarinForms.Editors
public Color IconColor { get; set; }
| Type | Description |
|---|---|
| Color |
Icon color.
|
The button gets a color for its icon from the applied theme. Use the IconColor property to apply a custom color to the button icon. If you need the button to display the icon in its original color, set the IconColor property to Color.Default.
To specify the icon color for the button in a pressed state, use the PressedIconColor property.
This example shows how to customize button appearance and handle the button click event.
|
Button State
|
Default Appearance
|
Custom Appearance
| | --- | --- | --- | |
Default
|
|
| |
Pressed
|
|
| |
Disabled
|
|
|
Add the delete.png icon file to your platform-specific projects:
Use the following properties to adjust the button’s appearance and handle the Clicked event to clear label1 on button tap:
See Also