Skip to content

Float Label Numeric Decimal Entry Control

The Float Label Numeric Decimal Entry control allows the developer to easily implement a control that can handle decimal entry, handy for currencies and other pesky decimal scenarios.

FloatLabelNumericDecimalEntry

Properties

Text - string

Gets or sets the entry control's text.

PrefixValue - string

Gets or sets the prefix value.

MaxValue - decimal

Gets or sets the maximum value. Default value is decimal.MaxValue.

MinValue - decimal

Gets or sets the minimum value. Default value is decimal.MinValue.

Value - decimal?

Gets or sets the value. Default value is decimal.Zero.

Format - string

Gets or sets the format specifier. Default is "0.##".

MaxDecimalPlaces - int

Gets or sets the maximum decimal places. Default value is 2.

FontAttributes - FontAttributes

Gets or sets the font attributes. Default value is FontAttributes.None.

FontSize - double

Gets or sets the font size. Default value is Services.PlatformInfo.DefaultButtonFontSize.

FontFamily - string

Gets or sets the font family. Default value is Font.Default.FontFamily.

TextColor - Color

Gets or sets the text color. Default value is Black.

Example Usage

Xaml

<aurora:FloatLabelNumericDecimalEntry x:Name="updatedNumericEntry" Placeholder="Updated Currency Entry" PrefixValue="$" MaxValue="999.99" />

C#

var decimal = new FloatLabelNumericDecimalEntry
    {
        MaxDecimalPlaces = 3,
        MinValue = 1,
        Placeholder = "Enter amount here"
    };