C# Класс Gu.Wpf.ValidationScope.Scope

Показать файл Открыть проект

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

Свойство Тип Описание
ErrorEvent System.Windows.RoutedEvent
ErrorsChangedEvent System.Windows.RoutedEvent
ErrorsProperty System.Windows.DependencyProperty
ForInputTypesProperty System.Windows.DependencyProperty
HasErrorProperty System.Windows.DependencyProperty
NodeProperty System.Windows.DependencyProperty
OneWayToSourceBindingsProperty System.Windows.DependencyProperty

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

Метод Описание
AddErrorHandler ( DependencyObject element, EventHandler handler ) : void

Adds a handler for the Scope.ValidationError attached event.

AddErrorsChangedHandler ( this element, EventHandler handler ) : void

Adds a handler for the Scope.ErrorsChanged attached event.

RemoveErrorHandler ( DependencyObject element, EventHandler handler ) : void

Removes a handler for the Scope.ValidationError attached event.

RemoveErrorsChangedHandler ( this element, EventHandler handler ) : void

Removes a handler for the Scope.ErrorsChanged attached event.

SetForInputTypes ( FrameworkElement element, InputTypeCollection value ) : void
SetOneWayToSourceBindings ( this element, OneWayToSourceBindings value ) : void

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

Метод Описание
GetErrors ( DependencyObject element ) : ReadOnlyObservableCollection
GetForInputTypes ( FrameworkElement element ) : InputTypeCollection
GetHasError ( UIElement element ) : bool
GetNode ( DependencyObject element ) : Node
GetOneWayToSourceBindings ( this element ) : OneWayToSourceBindings
IsScopeFor ( this parent, DependencyObject source ) : bool
IsScopeFor ( this parent, ValidationError error ) : bool
OnForInputTypesChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnNodeChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnNodeErrorsChanged ( object sender, ErrorsChangedEventArgs e ) : void
OnWayToSourceBindingsChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
SetErrors ( this element, ReadOnlyObservableCollection value ) : void
SetHasError ( DependencyObject element, bool value ) : void
SetNode ( DependencyObject element, Node value ) : void
Target ( this error ) : DependencyObject
UpdateErrorsAndHasErrors ( DependencyObject dependencyObject, IEnumerable removedErrors, IEnumerable addedErrors, ReadOnlyObservableCollection errors ) : void
UpdateParent ( this source, IEnumerable removed, IEnumerable added ) : void

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

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

Adds a handler for the Scope.ValidationError attached event.
public static AddErrorHandler ( DependencyObject element, EventHandler handler ) : void
element System.Windows.DependencyObject UIElement or ContentElement that listens to this event
handler EventHandler Event Handler to be added
Результат void

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

Adds a handler for the Scope.ErrorsChanged attached event.
public static AddErrorsChangedHandler ( this element, EventHandler handler ) : void
element this UIElement or ContentElement that listens to this event
handler EventHandler Event Handler to be added
Результат void

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

Removes a handler for the Scope.ValidationError attached event.
public static RemoveErrorHandler ( DependencyObject element, EventHandler handler ) : void
element System.Windows.DependencyObject UIElement or ContentElement that listens to this event
handler EventHandler Event Handler to be removed
Результат void

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

Removes a handler for the Scope.ErrorsChanged attached event.
public static RemoveErrorsChangedHandler ( this element, EventHandler handler ) : void
element this UIElement or ContentElement that listens to this event
handler EventHandler Event Handler to be removed
Результат void

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

public static SetForInputTypes ( FrameworkElement element, InputTypeCollection value ) : void
element System.Windows.FrameworkElement
value InputTypeCollection
Результат void

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

public static SetOneWayToSourceBindings ( this element, OneWayToSourceBindings value ) : void
element this
value OneWayToSourceBindings
Результат void

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

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

Notifies when validation errors occurs in the scope. Bindings does not need NotifyOnValidationError=True for thhsi event to fire.
public static RoutedEvent,System.Windows ErrorEvent
Результат System.Windows.RoutedEvent

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

Notifies when validation errors occurs in the scope. Bindings does not need NotifyOnValidationError=True for thhsi event to fire.
public static RoutedEvent,System.Windows ErrorsChangedEvent
Результат System.Windows.RoutedEvent

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

public static DependencyProperty,System.Windows ErrorsProperty
Результат System.Windows.DependencyProperty

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

public static DependencyProperty,System.Windows ForInputTypesProperty
Результат System.Windows.DependencyProperty

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

public static DependencyProperty,System.Windows HasErrorProperty
Результат System.Windows.DependencyProperty

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

public static DependencyProperty,System.Windows NodeProperty
Результат System.Windows.DependencyProperty

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

public static DependencyProperty,System.Windows OneWayToSourceBindingsProperty
Результат System.Windows.DependencyProperty