C# Класс System.Waf.Presentation.ValidationHelper

Provides methods and attached properties that support data validation tracking. This works only if NotifyOnValidationError=true is set by every Binding that participates in data validation.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
IsEnabledProperty System.Windows.DependencyProperty
IsValidProperty System.Windows.DependencyProperty

Открытые методы

Метод Описание
GetIsEnabled ( DependencyObject obj ) : bool

Gets a value that indicates whether the ValidationHelper is enabled.

GetIsValid ( DependencyObject obj ) : bool

Gets a value that indicates whether the object is valid.

SetIsEnabled ( DependencyObject obj, bool value ) : void

Sets the value that indicates whether the ValidationHelper is enabled. The default value is 'false'. It is not allowed to call this method with 'false'.

Приватные методы

Метод Описание
CheckBindingMode ( BindingMode bindingMode ) : void
InternalSetIsValid ( DependencyObject obj, bool value ) : void
IsEnabledChangedCallback ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs e ) : void
IsValidChangedCallback ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs e ) : void
SetIsValid ( DependencyObject obj, bool value ) : void

Описание методов

GetIsEnabled() публичный статический Метод

Gets a value that indicates whether the ValidationHelper is enabled.
public static GetIsEnabled ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject The object to read the value from.
Результат bool

GetIsValid() публичный статический Метод

Gets a value that indicates whether the object is valid.
public static GetIsValid ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject The object to read the value from.
Результат bool

SetIsEnabled() публичный статический Метод

Sets the value that indicates whether the ValidationHelper is enabled. The default value is 'false'. It is not allowed to call this method with 'false'.
The value must not be set to 'false'.
public static SetIsEnabled ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject The object to set the value to.
value bool if set to true then the ValidationHelper is enabled for the specified object.
Результат void

Описание свойств

IsEnabledProperty публичное статическое свойство

Identifies the IsEnabled attached property. This property contains the value that indicates whether the ValidationHelper is enabled.
public static DependencyProperty,System.Windows IsEnabledProperty
Результат System.Windows.DependencyProperty

IsValidProperty публичное статическое свойство

Identifies the IsValid attached property. This property contains the value that indicates whether the associated object is valid.
This is a readonly property. However, it is allowed to define a Binding with the Mode=OneWayToSource for this property.
public static DependencyProperty,System.Windows IsValidProperty
Результат System.Windows.DependencyProperty