https://www.telerik.com/forums/setting-background-color-when-control-is-readonly
The above link shows where someone had a similar issue but isn't clear on how to solve it.
I want to set a text box to not look disabled when it is readonly.
In the example below I set the background to red just to demonstrate that nothing happens.
I think it not happening because the application is using a theme (windows11)
Can I set the BasedOn to something that means "current theme", so that it will work?
<!-- Want readonly to not look disabled in many places -->
<Style x:Key="LxReadOnlyRadW"
TargetType="telerik:RadWatermarkTextBox"
BasedOn="{StaticResource {x:Type telerik:RadWatermarkTextBox}}">
<Style.Triggers>
<Trigger Property="IsReadOnly"
Value="True">
<Setter Property="Background"
Value="red" />
</Trigger>
</Style.Triggers>
<Setter Property="IsReadOnly"
Value="True" />
</Style>