Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

#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