This question is locked. New answers and comments are not allowed.
I have two radcontrols:
<telerik:RadMaskedNumericInput Name="txtC" Value="{x:Null}" IsClearButtonVisible="False" Height="30" Width="50" Mask="###" Placeholder=" " HorizontalContentAlignment="Right" HorizontalAlignment="Left" VerticalContentAlignment="Center" ValueChanged="txtC_ValueChanged" />
and I need to know how to change the background color according to the numbers the user is going to type.
eg:
I already checked other solutions with System.Windows.Media.BrushConverter, but it doesn't appear in my codebehind, even using the namespace. I am using VS 2010.
Di.
<telerik:RadMaskedNumericInput Name="txtC" Value="{x:Null}" IsClearButtonVisible="False" Height="30" Width="50" Mask="###" Placeholder=" " HorizontalContentAlignment="Right" HorizontalAlignment="Left" VerticalContentAlignment="Center" ValueChanged="txtC_ValueChanged" />
and I need to know how to change the background color according to the numbers the user is going to type.
eg:
if (!string.IsNullOrWhiteSpace(txtAltura.Text)){ txtC.Background = "Green"; // or txtC.Background = ColorNames.Green;}I already checked other solutions with System.Windows.Media.BrushConverter, but it doesn't appear in my codebehind, even using the namespace. I am using VS 2010.
Di.