[]
Represent the converter used to convert text with special format.
[Localizability(LocalizationCategory.NeverLocalize)]
public class MaskFormatConverter : IValueConverter, INotifyPropertyChanged
<Localizability(LocalizationCategory.NeverLocalize)>
Public Class MaskFormatConverter
Implements IValueConverter, INotifyPropertyChanged
MaskFormatConverter is used to convert a given text to another string in a binding process based on the specified format. If the text is valid to the GrapeCity.Windows.InputMan.MaskFormatConverter.Pattern property, it returns a translated string back; otherwise, it returns error string.
Name | Description |
---|---|
MaskFormatConverter() | Initialize a new instance of MaskFormatConverter. |
Name | Description |
---|---|
ErrorString | Gets or sets the string to return when converted object doesn't meet the pattern. |
NullString | Gets or sets the string to return when converted object is String.Empty or null. |
Pattern | Gets or sets the format for MaskFormatConverter. |
Name | Description |
---|---|
Convert(object, Type, object, CultureInfo) | Converts a value to a special string based on different pattern. |
ConvertBack(object, Type, object, CultureInfo) | Modifies the target data before passing it to the source object. This method is called only in TwoWay bindings. |