RadColorDialog with Named Colors

2 posts, 0 answers
  1. Jon
    Jon avatar
    42 posts
    Member since:
    Jan 2009

    Posted 01 Dec 2009 Link to this post

    Trying to use the RadColorDialog with only the web tab showing to select Named colors.  Oddly after the "named" color is selected in the dialog, the SelectedColor is not a named color.  Pick Blue then see what happens.

                radColorDialog1.ColorDialogForm.ShowBasicColors = false
                radColorDialog1.ColorDialogForm.ShowProfessionalColors = false
                radColorDialog1.ColorDialogForm.ShowSystemColors = false
                radColorDialog1.ColorDialogForm.ShowHEXColorValue = false
                radColorDialog1.ColorDialogForm.AllowColorPickFromScreen = false
                var color = radColorDialog1.SelectedColor; 
                var blue = Color.FromName("Blue"); 
                var areSame = color == blue ? "Same Color" : "Different Colors"; 
                var isKnown = color.IsKnownColor ? "Yes named" : "Not named"; 
                MessageBox.Show(string.Format("Color 1: {0} ({4})\nColor 2: {1} ({5})\n{2} : {3}", color, blue, areSame, isKnown, color.ToArgb(), blue.ToArgb())); 

    Blue != Blue, Same ARGB != Same ARGB, Is not a named color.
  2. Nikolay
    Nikolay avatar
    1805 posts

    Posted 08 Dec 2009 Link to this post

    Hello Jon Masters,

    Thank you for reporting this issue.

    I was able to reproduce it. It will be addressed in one of our next releases.

    I am updating your Telerik points for you feedback.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top