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

AutomaticColor Issue

1 Answer 82 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
Fábio Witt jagnow
Top achievements
Rank 2
Fábio Witt jagnow asked on 19 Jul 2011, 02:43 PM
Hey..

In the application that i'm developing, i'm using the ColorPicker and i needed to use the Color Transparent. Since i didn't knew how i could achieve that, i searched here in the forum and found this thread, that is very similar to my case.
http://www.telerik.com/community/forums/silverlight/colorpicker/selectedcolor-doesn-t-update-ui.aspx

I've downloaded the example and i saw that the AutomaticColor property wasn't working declaratively in the xaml. I realized it was made in an old build. Then i updated the references to the lastest build.. It worked fine...

After that, i tried to do the same on my application but it not worked as i expected, not even in the codebehind. Then i went to see what was different between my code and the one in the example, the only thing that i found was the Expression_Dark theme that i was using. I added the reference to the Expression_Dark theme on the example project, changed the ColorPicker to change the style to E.Dark and suddenly it stopped working. I tought then it could be the Colors that in the Expression_Dark theme are different, but then i tried colors that belong to the theme like #FF416100 and #FF1F497D, but that did not worked.

So here's the code that i've changed:
private void Button_Click(object sender, RoutedEventArgs e)
{
    //picker.AutomaticColor = Color.FromArgb(255, 65, 97, 0);
    picker.AutomaticColor = Color.FromArgb(255, 31, 73, 125);
    picker.SelectedColor = Color.FromArgb(255, 216, 214, 203);
}

<telerik:RadColorPicker telerik:StyleManager.Theme="Expression_Dark"
                                    x:Name="picker" />

Maybe you guys can give me a light or another approach. 

Thanks,
Fábio Witt.

1 Answer, 1 is accepted

Sort by
0
Accepted
Petar Mladenov
Telerik team
answered on 22 Jul 2011, 03:17 PM
Hello Fábio Witt Jagnow,

 This appears to be a bug in the ExpressionDark theme. We logged it in our PITS and we also updated your telerik account points. Thank you for your cooperation and pelase accept our apologies for any inconvenience caused.

Greetings,
Petar Mladenov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
ColorPicker
Asked by
Fábio Witt jagnow
Top achievements
Rank 2
Answers by
Petar Mladenov
Telerik team
Share this question
or