Class TextBoxMaskingBehaviorBase
Microsoft.Xaml.Behaviors.Behavior for masking a TextBox to allow only entering specific data.
Behavior<TextBox>.AssociatedObject
Behavior.CreateInstanceCore()
Behavior.Detach()
Behavior.AssociatedType
Namespace: Sartorius.SAF.Presentation.Behaviors
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public abstract class TextBoxMaskingBehaviorBase : Behavior<TextBox>, IAnimatable, IAttachedObject
Fields
View SourceIsTextBoxClearingAllowedProperty
Dependency property for the IsTextBoxClearingAllowed property.
Declaration
public static readonly DependencyProperty IsTextBoxClearingAllowedProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
Properties
View SourceIsTextBoxClearingAllowed
Indicates whether it is allowed to clear the TextBox.
Declaration
public bool IsTextBoxClearingAllowed { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
View SourceIsValid(string)
Checks whether the valueToValidate matches the pattern to be valid.
Declaration
public abstract 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. |
OnAttached()
Called after the behavior is attached to an AssociatedObject.
Declaration
protected override void OnAttached()
Overrides
Microsoft.Xaml.Behaviors.Behavior.OnAttached()
Remarks
Override this to hook up functionality to the AssociatedObject.
OnDetaching()
Called when the behavior is being detached from its AssociatedObject, but before it has actually occurred.
Declaration
protected override void OnDetaching()
Overrides
Microsoft.Xaml.Behaviors.Behavior.OnDetaching()
Remarks
Override this to unhook functionality from the AssociatedObject.
Implements
Microsoft.Xaml.Behaviors.IAttachedObject