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:
Maybe you guys can give me a light or another approach.
Thanks,
Fábio Witt.
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.