[]
        
(Showing Draft Content)

C1.WPF.Schedule.NumberStringValidator

NumberStringValidator Class

Represents a custom validation rule for number strings.

Inheritance
NumberStringValidator
Namespace: C1.WPF.Schedule
Assembly: C1.WPF.Schedule.4.6.2.dll
Syntax
public class NumberStringValidator : ValidationRule

Constructors

Name Description
NumberStringValidator()

Fields

Name Description
CultureProperty

The Culture attached property can be used to localize validation results: <TextBox c1sched:NumberStringValidator.Culture=''{Binding Path=CalendarHelper.Culture, RelativeSource={RelativeSource AncestorType={x:Type c1sched:C1Scheduler}}, Mode=OneWay}''/>

Properties

Name Description
Format

Gets or sets formatting strings which should be used at number conversion.

Max

Gets or sets a maximum allowable value.

Min

Gets or sets a minimum allowable value.

ValidationCulture

Gets or sets culture used for localizing validation results. If this property is null, the CultureInfo specified in Validate method parameters will be used.

Methods

Name Description
GetCulture(DependencyObject)

Gets the value of the Culture attached property for a given DependencyObject.

SetCulture(DependencyObject, CultureInfo)

Sets the value of the Culture attached property for a given DependencyObject.

Validate(object, CultureInfo)

Performs validation checks on a value.