Hi,
I am a newbie for Telerik components and am developing a Win Phone 8 app using it. I need to manage my foreground color for dark/light themes', how should it be managed ?
I am somewhat new for WinPh8 also. I tried the following, but no success :
In
<phone:
PhoneApplicationPage have added
Foreground="{StaticResource PhoneForegroundBrush}"
<Controls:RadTextBox Grid.Row="0" HorizontalAlignment="Stretch" Text="{Binding FirstName, Mode=TwoWay}"
ClearButtonVisibility="Visible" Watermark="First Name" />
In xml.cs constructor :
//PhoneForegroundBrush
Resources.Remove("PhoneForegroundBrush");
Resources.Add("PhoneForegroundBrush", System.Windows.Media.Colors.Red);
//((System.Windows.Media.SolidColorBrush)Resources["PhoneForegroundBrush"]).Color = System.Windows.Media.Colors.Magenta; // THIS LINE GIVES ERROR
InitializeComponent();
Resources.Remove("PhoneForegroundBrush");
Resources.Add("PhoneForegroundBrush", System.Windows.Media.Colors.Red);
Still my fore color of textboxes is default only. When I change the theme from dark to light, I can't see anything that I enter in the textboxes.
I have several files & several textboxes used in my app, how do I sort out this problem.
Kindly help me solve the problem.
Thanks