How to determine if user has selected NoColor

2 posts, 0 answers
  1. Ric
    Ric avatar
    8 posts
    Member since:
    Aug 2010

    Posted 06 Apr 2011 Link to this post

    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?

    Ric Yik
  2. Petar Mladenov
    Petar Mladenov avatar
    2882 posts

    Posted 11 Apr 2011 Link to this post

    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.

    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
  3. DevCraft R3 2016 release webinar banner
Back to Top