Class TextBoxIntMaskingBehavior
see cref="Behavior"/> for masking a TextBox to allow only entering of int values.
Behavior<TextBox>.AssociatedObject
Behavior.CreateInstanceCore()
Behavior.Detach()
Behavior.AssociatedType
Namespace: Sartorius.SAF.Presentation.Behaviors
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public class TextBoxIntMaskingBehavior : TextBoxMaskingBehaviorBase, IAnimatable, IAttachedObject
Fields
View SourceMaximumProperty
Identifies the DependencyProperty for the Maximum property.
Declaration
public static readonly DependencyProperty MaximumProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
MaximunProperty
The dependencyProperty for the Property Maximum
Declaration
public static readonly DependencyProperty MaximunProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
MinimumProperty
The DependencyProperty for the Property Minimum
Declaration
public static readonly DependencyProperty MinimumProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
Properties
View SourceMaximum
Gets or sets the maximum value the associated Text is allowed to represent.
Declaration
public int? Maximum { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Minimum
Gets or sets the minimum value the associated Text is allowed to represent.
Declaration
public int? Minimum { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Methods
View SourceIsValid(string)
Checks whether the valueToValidate matches the pattern to be valid.
Declaration
public override bool IsValid(string valueToValidate)
Parameters
| Type | Name | Description |
|---|---|---|
| string | valueToValidate | The value for validation. |
Returns
| Type | Description |
|---|---|
| bool | True if the value is valid, otherwise false. |
Overrides
Implements
Microsoft.Xaml.Behaviors.IAttachedObject