Hi everyone,
I have a few application resources in my Silverlight 2 Beta 1 app:
<Application.Resources>
<FontFamily x:Key="FontNormal">Trebuchet MS</FontFamily>
<System:Double x:Key="TextSizeNormal">12</System:Double>
<FontFamily x:Key="FontTitle1">Trebuchet MS</FontFamily>
<System:Double x:Key="TextSizeTitle1">14</System:Double>
<Color x:Key="ColorForegroundTitle1">#FF4186B2</Color>
<Color x:Key="ColorClickableText">#FF0000C9</Color>
</Application.Resources>
and I have to access these resources in the code. The line
Double TextSizeNormal = Convert.ToDouble( App.Current.Resources["TextSizeNormal"] );
works perfectly fine. But the line
Object c = App.Current.Resources["ColorClickableText"];
doesn't work. Actually, App.Current.Resources["ColorClickableText"] returns null.
Bug?
Best regards,
Laurent