NANDA KUMAR

NANDA KUMAR

  • NA
  • 22
  • 2.8k

Style not working properly for Label and TextBox

Jun 29 2014 9:34 AM
Hi
 
 I have the style like:-
 
<Style TargetType="Textbox">
  <Style.Trigger>
     <Trigger Property="IsEnabled" value="False">
           <Setter property="Foreground" value="Brown"/>
     </Trigger>

    <Trigger Property="IsEnabled" value="False">
           <Setter property="Foreground" value="Blue"/>
    </Trigger>
 </Style.Trigger>
</ Style>
 
Here everthing is working fine but when i give the Isenabled = false, then that trigger is not firing. This same case for the label.
 
May i know where i am mistaking and how to make this work.
 
Thanks in advance.

Answers (1)