Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AlejandroRuiz/StatesButton
States Button for Xamarin.Forms
https://github.com/AlejandroRuiz/StatesButton
Last synced: 3 months ago
JSON representation
States Button for Xamarin.Forms
- Host: GitHub
- URL: https://github.com/AlejandroRuiz/StatesButton
- Owner: AlejandroRuiz
- License: mit
- Created: 2016-03-02T23:26:07.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-06T02:03:02.000Z (over 5 years ago)
- Last Synced: 2024-07-02T08:33:14.172Z (4 months ago)
- Language: C#
- Homepage: http://xamarinos.com
- Size: 370 KB
- Stars: 14
- Watchers: 6
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-xamarin-forms - StatesButton ★14
README
# StatesButton
States Button Control for Xamarin.Forms## Setup
### iOS
In your AppDelegate add this:
```
StatesButtonRenderer.Init();
```### Android
In your MainActivity add this:
```
StatesButtonRenderer.Init();
```## Usage
Images background states
```
var myButton = new StatesButtonControl () {
Text = "Hello",
NormalImage = "button",
DisableImage = "button_disabled",
PressedImage = "button_press",
TextColor = Color.White
};
```Color background states
```
var myButton = new StatesButtonControl () {
Text = "Hello",
BackgroundColor = Color.Red,
DisableBackgroundColor = Color.Blue,
PressedBackgroundColor = Color.Fuchsia,
TextColor = Color.White
};
```# Nuget
* Nuget Package (https://www.nuget.org/packages/StatesButton.Forms)