WinRT/XAML Colour Picker (using SharpDx)


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


2 responses to “WinRT/XAML Colour Picker (using SharpDx)

  1. Pingback: WinRT/XAML Colour Picker (using SharpDx) | Silverlight and other cool things …

  2. Pingback: Windows 8 Developer Links – 2012-10-05 | Dan Rigby

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s