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.
파일 보기 프로젝트 열기: jbe2277/waf

공개 프로퍼티들

프로퍼티 타입 설명
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