This question is locked. New answers and comments are not allowed.
Hello,
This should be a fairly simple thing but I have searched the forums and others seem to be having similar issues and I havent been able to apply the solutions from any of the other posts.
I would like to apply a red border to the RadComboBox when a button is pressed, this is acheived simply for a standard silverlight ComboBox by the following:
App.xaml:
Page.xaml.cs:
Please can someone explain how to acheive this with a RadComboBox?
Thanks,
Ken
This should be a fairly simple thing but I have searched the forums and others seem to be having similar issues and I havent been able to apply the solutions from any of the other posts.
I would like to apply a red border to the RadComboBox when a button is pressed, this is acheived simply for a standard silverlight ComboBox by the following:
App.xaml:
<Style TargetType="ComboBox" x:Key="RedBorderComboBox"> <Setter Property="BorderBrush" Value="Red" /> <Setter Property="BorderThickness" Value="1" /></Style>Page.xaml.cs:
Style redBorderStyleComboBox = Application.Current.Resources["RedBorderComboBox"] as Style;var cb = control as ComboBox;if (cb.SelectedValue == null){ cb.Style = redBorderStyleComboBox;}Please can someone explain how to acheive this with a RadComboBox?
Thanks,
Ken