States Button for Xamarin.Forms
C#
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
StatesButton.Android
StatesButton.Forms
StatesButton.Shared
StatesButton.iOS
Test
art
.gitignore
LICENSE
README.md
StatesButton.Forms.2.0.0.nupkg
StatesButton.Forms.nuspec
StatesButton.sln

README.md

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