Intersoft ClientUI Documentation
ClearErrorOnTextInputProperty Field
See Also  Send Feedback
Intersoft.Client.Framework Namespace > DataBinding Class : ClearErrorOnTextInputProperty Field






Identifies the UpdateSourceOnPropertyChanged attached property.

Syntax

Visual Basic (Declaration) 
Public Shared ReadOnly ClearErrorOnTextInputProperty As DependencyProperty
Visual Basic (Usage)Copy Code
Dim value As DependencyProperty
 
value = DataBinding.ClearErrorOnTextInputProperty
C# 
public static readonly DependencyProperty ClearErrorOnTextInputProperty
Delphi 
public field ClearErrorOnTextInputProperty: DependencyProperty; static; readonly 
JScript 
public static var ClearErrorOnTextInputProperty : DependencyProperty;
Managed Extensions for C++ 
public: static readonly DependencyProperty* ClearErrorOnTextInputProperty
C++/CLI 
public:
static readonly DependencyProperty^ ClearErrorOnTextInputProperty

Example

The following example shows difference between input control that uses ClearErrorOnTextInput and input controls that does not use ClearErrorOnTextInput.

XAML Copy Code
<Intersoft:FieldLabel Header="Price:" HeaderWidth="80" HorizontalHeaderAlignment="Right">
    <Intersoft:UXTextBox HorizontalAlignment="Center" Width="60" 
                            Text="{Binding Path=Book.Price, Mode=TwoWay, ValidatesOnDataErrors=True, ValidatesOnExceptions=True, StringFormat=\{0:c\}}"/>
</Intersoft:FieldLabel>

<Intersoft:FieldLabel Header="Price:" HeaderWidth="80" HorizontalHeaderAlignment="Right">
    <Intersoft:UXTextBox HorizontalAlignment="Center" Width="60" 
                            Text="{Binding Path=Book.Price, Mode=TwoWay, ValidatesOnDataErrors=True, ValidatesOnExceptions=True, StringFormat=\{0:c\}}"
                            Intersoft:DataBinding.ClearErrorOnTextInput="True"/>
</Intersoft:FieldLabel>

Remarks

ClearErrorOnTextInput is one of many functionality provided in ClientUI Advanced Binding Framework. To learn more about this see Data Binding Overview.

ClearErrorOnTextInput is an attached property that you can used to enhance validation behavior. The standard validation behavior gives an error indication when the validation failed and stays visibile until a new validation takes place.

ClearErrorOnTextInput provides an enhanced behavior where you can clear the error indication immediately when you perform any text input.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.