Back to Devexpress

TextEditSettings.MaskCulture Property

wpf-devexpress-dot-xpf-dot-editors-dot-settings-dot-texteditsettings-771f71bd.md

latest3.0 KB
Original Source

TextEditSettings.MaskCulture Property

Gets or sets the culture whose settings are used by masks. This is a dependency property.

Namespace : DevExpress.Xpf.Editors.Settings

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public CultureInfo MaskCulture { get; set; }
vb
Public Property MaskCulture As CultureInfo

Property Value

TypeDescription
CultureInfo

A CultureInfo object whose settings are used by masks.

|

Remarks

This property specifies the CultureInfo whose settings are used by masks. For instance, it provides such settings as the character used as a currency symbol, date and time separators, the number of digits to the right of the decimal point, common date and numeric patterns, etc.

By default, the MaskCulture property is set to a null reference. In this instance, the masks use the culture of the current thread (the CurrentCulture property). You can set the MaskCulture property to any other CultureInfo object, and the editor will use the specified culture instead of the default one.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the MaskCulture property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-spreadsheet-bind-grid-control-to-worksheet-data/CS/WpfSpreadsheet_DataBinding/MainWindow.xaml#L29

xml
<Setter Property="Mask" Value="c"/>
    <Setter Property="MaskCulture" Value="en-US"/>
</Style>

See Also

TextEditSettings Class

TextEditSettings Members

DevExpress.Xpf.Editors.Settings Namespace