Back to Devexpress

NumericMaskOptions.AlwaysShowDecimalSeparator Attached Property

wpf-devexpress-dot-xpf-dot-editors-dot-numericmaskoptions-5ec0c41d.md

latest1.8 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Core

Declaration

See GetAlwaysShowDecimalSeparator(DependencyObject) and SetAlwaysShowDecimalSeparator(DependencyObject, Boolean).

Returns

TypeDescription
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.

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

See Also

NumericMaskOptions Class

NumericMaskOptions Members

DevExpress.Xpf.Editors Namespace