This is a migrated thread and some comments may be shown as answers.

How to determine if user has selected NoColor

1 Answer 51 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
Ric
Top achievements
Rank 1
Ric asked on 06 Apr 2011, 10:14 AM
Hi Telerik Support,

It's Ric Yik, we are using RadColorPicker for WPF.

I have 2 questions here:

  1. We would like to know how can we know if the user has selected the NoColor Field?
    We will detect if the user has chosen NoColor such that some specific logic will be applied.
  2. How to set the default NoColor?

Thanks
Ric Yik

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 11 Apr 2011, 02:12 PM
Hello Ric,

The "NoColor" could be set with the AutomaticColor property of the RadColorPicker. Unfortunately, there is no easy way to detect that user clicked on this element of the RadColorPicker. You probably have to iterate over the Visual tree in the MouseLeftButtonDown event handler. However, could you please elaborate more on your scenario, this way we could think up something more elegant. Thank you in advance.


Greetings,
Petar Mladenov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ColorPicker
Asked by
Ric
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or