Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
XML
<TextBox x:Name="txtDCUdescription" VerticalScrollBarVisibility="Auto"  AcceptsReturn="True" Text="{Binding DcuDescription.Value, Mode=OneTime, UpdateSourceTrigger=LostFocus, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" HorizontalAlignment="Left" Height="48" Margin="150,3,0,0"  TextWrapping="Wrap" VerticalAlignment="Top" Width="172"  TabIndex="0" FontWeight="Normal" MaxLines="3" LostFocus="txtDCUdescription_LostFocus" MaxLength="128" CharacterCasing="Normal">
                 <TextBox.Style>
                     <Style TargetType="TextBox">

                         <Style.Triggers>

                             <DataTrigger Binding="{Binding DcuDescription.IsChanged}" Value="False">

                                 <Setter Property="Foreground" Value="Green" />
                             </DataTrigger>
                         </Style.Triggers>
                     </Style>
                 </TextBox.Style>
             </TextBox>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900