This question is locked. New answers and comments are not allowed.
Hi,
I want all controls to not react visually to IsReadOnly being set, or at least have control over what color is used (so I can make it transparent).
For controls RadMaskedTextBox and RadMaskedNumericInput there is the following property in the style:
<SolidColorBrush x:Key="TextBoxBackground_ReadOnly" Color="White"/>
Removing only the references and leaving the definition works. For example:
<SolidColorBrush x:Key="TextBoxBackground_ReadOnly" Color="Transparent"/>
<!--<Setter Property="Background" Value="{StaticResource TextBoxBackground_ReadOnly}"/>-->
<!--<VisualState x:Name="ReadOnly"> <Storyboard> <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="InnerBorder"> <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource TextBoxBackground_ReadOnly}"/> </ObjectAnimationUsingKeyFrames> </Storyboard> </VisualState>-->
But I cannot get this to work for RadDatePicker style, what do I need to remove from the default style to not have it react to IsReadonly visually? There doesn't seem to be a VisualState for ReadOnly?
Regards,
Bayram