I've applied the Office_Blue theme to all TextBox controls.
When the TextBox is disabled, the text appears very transparent and is almost unreadable. I've tried to change the opacity with a trigger, but this doesn't work. Any ideas how to solve that?
Thanks,
Michael
When the TextBox is disabled, the text appears very transparent and is almost unreadable. I've tried to change the opacity with a trigger, but this doesn't work. Any ideas how to solve that?
Thanks,
Michael
<
Style
TargetType
=
"{x:Type TextBox}"
>
<
Setter
Property
=
"t:StyleManager.Theme"
Value
=
"Office_Blue"
/>
<
Style.Triggers
>
<
Trigger
Property
=
"IsEnabled"
Value
=
"False"
>
<
Setter
Property
=
"TextBox.Foreground"
Value
=
"Black"
/>
<!--does not work: -->
<
Setter
Property
=
"TextBox.Opacity"
Value
=
"1"
/>
</
Trigger
>
</
Style.Triggers
>
</
Style
>