Table of Contents

Class ValidationHelper

Namespace
Ecng.Xaml
Assembly
StockSharp.Xaml.dll

Provides attached properties to associate validation rules with DevExpress editors.

public static class ValidationHelper
Inheritance
ValidationHelper
Inherited Members

Fields

BaseEditProperty

Identifies the BaseEdit attached property.

public static readonly DependencyProperty BaseEditProperty

Field Value

DependencyProperty

ValidationRulesProperty

Identifies the ValidationRules attached property.

public static readonly DependencyProperty ValidationRulesProperty

Field Value

DependencyProperty

Methods

GetBaseEdit(BaseEditSettings)

Gets the DevExpress.Xpf.Editors.BaseEdit instance associated with the specified settings object.

public static BaseEdit GetBaseEdit(BaseEditSettings settings)

Parameters

settings BaseEditSettings

Returns

BaseEdit

GetValidationRules(DependencyObject)

Gets the collection of validation rules attached to the specified object.

public static ValidationRulesCollection GetValidationRules(DependencyObject obj)

Parameters

obj DependencyObject

Returns

ValidationRulesCollection

SetBaseEdit(BaseEditSettings, BaseEdit)

Associates a DevExpress.Xpf.Editors.BaseEdit instance with the specified settings object.

public static void SetBaseEdit(BaseEditSettings settings, BaseEdit edit)

Parameters

settings BaseEditSettings
edit BaseEdit

SetValidationRules(DependencyObject, ValidationRulesCollection)

Sets the collection of validation rules attached to the specified object.

public static void SetValidationRules(DependencyObject obj, ValidationRulesCollection value)

Parameters

obj DependencyObject
value ValidationRulesCollection