I needed a colour picker for an app I’m building and it turns out no ones built a WinRT XAML one yet.
So this is my very simple colour picker!
I use bitmaps to represent the swatch (in my case i have 3 different types).
I use SharpDx to get the “Pixel Buffer” of the selected swatch
Where ever the mouse or pointer is i get the pixel under that position via the pixel buffer and from that i get the colours (RGBA)
This is what the colour picker looks like
This is a quick video of the colour picker :
Here’s the code