WPF – Colour Picker Widget With Attached Properties(www.deanchalk.me.uk)

submitted by ButtonChromeButtonChrome(230) 1 year, 6 months ago

We can set the colour of any WPF control that supports it, but what about being able to specifically setting individual colour channels (RED, GREEN, BLUE, ALPHA) I've seen many solutions that contain complex custom controls, but one of the key philosophies of WPF is to reuse what you already have, and change the look or extend the functionality via control templates and the dependency system. therefore, I have created a colour picker widget that uses only standard controls, and doesn't even change their control templates. Everything is accomplished via the use of attached properties, which are a very underrated tool in the WPF tookbox.

add a comment |category: |Views: 21

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story