In This Article

DecimalPropertyEditor Class

Represents a PropertyEditor for editing a Decimal value with a DecimalEditBox.

public class DecimalPropertyEditor : PartEditBoxPropertyEditorBase
Inheritance:
object ObservableObjectBase PropertyEditor PropertyEditorBase PartEditBoxPropertyEditorBase object
Derived:
NullableDecimalPropertyEditor

Constructors

DecimalPropertyEditor()

Initializes an instance of the class.

public DecimalPropertyEditor()

DecimalPropertyEditor(Type)

Initializes an instance of the class.

protected DecimalPropertyEditor(Type propertyType)
Parameter Type Description
propertyType Type

The type of the property.

Properties

CanSnapToChangePrecision

Indicates whether the value should be snapped to the precision of the incremental change value prior to applying the increment.

public bool CanSnapToChangePrecision { get; set; }

Property Value

bool:

true if the value should be snapped to the precision of the incremental change value prior to applying the increment; otherwise, false. The default value is true.

Remarks

When true, a value of 1.24 with change value 0.1 would result in 1.3. When false, a value of 1.24 with change value 0.1 would result in 1.34.

DefaultValue

The value to set when incrementing/decrementing from a null value.

public decimal DefaultValue { get; set; }

Property Value

decimal:

The default value is 0.

Format

The number format string.

public string Format { get; set; }

Property Value

string:

The default value is "G".

HasPopup

Indicates whether the control has a popup available.

public bool HasPopup { get; set; }

Property Value

bool:

true if the control has a popup available; otherwise false. The default value is true.

IsArrowKeyPartNavigationEnabled

Indicates whether the left/right arrow keys can be used to move between and select editable parts.

public bool IsArrowKeyPartNavigationEnabled { get; set; }

Property Value

bool:

true if the left/right arrow keys can be used to move between and select editable parts; otherwise false. The default value is false.

LargeChange

The large change value.

public decimal LargeChange { get; set; }

Property Value

decimal:

The default value is 5.

Maximum

The highest possible value.

public decimal Maximum { get; set; }

Property Value

decimal

Minimum

The lowest possible value.

public decimal Minimum { get; set; }

Property Value

decimal

PickerKind

A DecimalEditBoxPickerKind indicating the pre-defined Style to apply to the picker used within the popup.

public DecimalEditBoxPickerKind PickerKind { get; set; }

Property Value

DecimalEditBoxPickerKind:

The default value is Calculator.

PredefinedValueTemplateKey

The resource key that references a pre-defined DataTemplate within internal resources to use for editing the property value.

protected override object PredefinedValueTemplateKey { get; }

Property Value

object

RoundingDecimalPlace

The rounding decimal place.

public int? RoundingDecimalPlace { get; set; }

Property Value

int?:

The rounding decimal place, which is a value between 0 and 15. Pass a null value to disable rounding. The default value is 8.

SmallChange

The small change value.

public decimal SmallChange { get; set; }

Property Value

decimal:

The default value is 1.

SpinnerVisibility

Indicates if and when the control has a spinner available.

public SpinnerVisibility SpinnerVisibility { get; set; }

Property Value

SpinnerVisibility:

The default value is VisibleWhenActive.

Inherited Members

Extension Methods