I am using RadComboBox to change the theme of the Rad controls.It is working fine. But I need the selected value of the RadComboBox in the Xaml.cs to change the theme of some silverlight controls. I am using the following code to change the theme and to get the Selected value in the Xaml.cs page.
xmlns:TelerikControls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
======================================================
<TelerikControls:RadComboBox x:Name="themesBox" SelectedIndex="0" Grid.Row="2" Grid.Column="5" SelectionChanged="themesBox_SelectionChanged" >
<telerik:SummerTheme />
<telerik:TransparentTheme />
</TelerikControls:RadComboBox>
<TelerikControls:RadDatePicker x:Name="date"
telerik:StyleManager.Theme="{Binding SelectedValue, ElementName=themesBox}"></TelerikControls:RadDatePicker>
=======================================================
private void themesBox_SelectionChanged(object sender, Telerik.Windows.Controls.SelectionChangedEventArgs e)
{
string strSeletedValue = themesBox.SelectedValue.ToString();
}
========================================================
In the above theme changing is working fine, but facing the problem in getting the seleted value.
Please help.
Thanks in Advance,
SivaPrasad.B