Skip to main content
A newer version of this page is available. .

NumericMaskOptions.AlwaysShowDecimalSeparator Attached Property

Gets or sets whether to show the decimal separator when the fractional part is zero. This is an attached property.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v19.1.dll

Declaration

Returns

Type Description
Boolean

A Boolean value that specifies whether to show the decimal separator.

Remarks

If the AlwaysShowDecimalSeparator attached property is set to false, the decimal separator is hidden only if the currently specified mask allows it. For example, if the mask is set to ##.00 and the AlwaysShowDecimalSeparator property is set to false, the decimal separator ‘.‘ is always shown.

The following example demonstrates a spin editor that hides the decimal separator when the fractional part is zero.

<dxe:SpinEdit dxe:NumericMaskOptions.AlwaysShowDecimalSeparator="False" Increment="0.5" />
See Also