Skip to main content

DxMaskPropertiesBase.Culture Property

Specifies an application’s current culture.

Namespace: DevExpress.Blazor.Base

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public CultureInfo Culture { get; set; }

Property Value

Type Description
CultureInfo

An object that defines the culture.

Remarks

The appearance of mask patterns depends on the current culture. For example, the same mask can specify different patterns in the U.S. and France. Users can change the regional format in the Settings → Time & Language → Region system dialog. To change the culture programmatically, use the Culture property.

@using System.Globalization

<DxSpinEdit @bind-Value="Value"
            Mask="@NumericMask.Currency">
    <DxNumericMaskProperties Culture="Culture" />
</DxSpinEdit>

@code{
    Double Value { get; set; }
    CultureInfo Culture = CultureInfo.GetCultureInfo("fr-FR");
}
See Also