microsoft / xaml-standard

XAML Standard : a set of principles that drive XAML dialect alignment
Other
805 stars 50 forks source link

Proposal Add ColorPicker Control #135

Open insinfo opened 7 years ago

insinfo commented 7 years ago

The ColorPicker is an editor that allows a user to pick a color from predefind color palettes. By default, there are 140 available colors and 10 predefined standard colors. You can use your own custom color palettes by setting the AvailableColors and StandardColors properties accordingly. You can also get/set the recently used colors by using the RecentColors property. Types Ring, Pie, Palette, Hue, Bar

<ColorPicker Name="ColorPicker1" SelectedColorChanged="OnChange" Type="Pie" ShowPalette="true" ShowColorSpaces="true">
       <Options...></Options>
</ColorPicker>

color picker 12 color picker 13 color picker color picker 2 color picker 3 color picker 4

color picker 5

color picker 6 color picker 7 color picker 8 color picker 9 color picker 10 color picker 11

Mike-E-angelo commented 7 years ago

Really great contributions here, @insinfo! Thank you for your efforts!

insinfo commented 7 years ago

@Mike-EEE

I updated with some syntax example and type definition, if you want to add options or types of colorpicks

birbilis commented 7 years ago

At http://clipflair.codeplex.com/SourceControl/latest if you go to Client/ZUI/ColorPicker in the tree (will probably move to separate github repo) can find a color picker that shares xaml+code between WPF and Silverlight. Probably bit old fashioned, but still useful to see the project structure used for sharing xaml+code, it sure was possible before UWP came with "using" and other breaking changes or omissions

birbilis commented 7 years ago

This is related (from Windows Platform Roadmap): https://developer.microsoft.com/en-us/windows/platform/features/colorpickercontrol/

insinfo commented 7 years ago

@birbilis Good news, I did not know that, thank you for the statement

insinfo commented 7 years ago

It would be nice if it were added in Xamarin.Forms and WPF as well