<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>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)