Skip to content

hassakarn/pop-color-picker

Repository files navigation

##PopColorPicker

A color picker component for Xamarin.iOS.

Support both iPhone and iPad.

AdvancedColorPicker

AdvancedColorPicker

Features

  • Custom color
  • Save favorite colors
  • Press-and-hold to delete a favorite color
  • Random colors
  • Color palette

Usage

colorPickerViewController = new ColorPickerViewController();

// assign event for cancelling
colorPickerViewController.CancelButton.Clicked += (object sender, EventArgs e) => {
	if (UserInterfaceIdiomIsPhone) { // for iPhone
		DismissViewController(true, null);
	} else { // for iPad
		_popoverController.Dismiss(true);
	}
};

// assign event for done selecting
colorPickerViewController.DoneButton.Clicked += (object sender, EventArgs e) => {
	if (UserInterfaceIdiomIsPhone) { // for iPhone
		DismissViewController(true, null);
	} else { // for iPad
		_popoverController.Dismiss(true);
	}

	var selectedColor = ccolorPickerViewController.SelectedColor;
};

Please check out the sample project about how to use it.

License

PopColorPicker is licensed under the terms of the MIT license.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages