In This Article

DataGridSingleColumn Class

Represents a data-bound column for use in a DataGrid that utilizes the SingleEditBox control.

public class DataGridSingleColumn : DataGridPartEditBoxColumnBase<float?>
Inheritance:
object DataGridColumn DataGridBoundColumn DataGridBoundColumnBase DataGridPartEditBoxColumnBase<float?> object

Constructors

DataGridSingleColumn()

Initializes an instance of the DataGridSingleColumn class.

public DataGridSingleColumn()

Properties

CanSnapToChangePrecision

Gets or sets 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

Gets or sets the value to set when incrementing/decrementing from a null value.

public float DefaultValue { get; set; }

Property Value

float:

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

Format

Gets or sets the number format string.

public string Format { get; set; }

Property Value

string:

The number format string. The default value is "G".

IsNaNAllowed

Gets or sets whether NaN is accepted as a value.

public bool IsNaNAllowed { get; set; }

Property Value

bool:

true if NaN is accepted as a value; otherwise, false. The default value is false.

IsNegativeInfinityAllowed

Gets or sets whether NegativeInfinity is accepted as a value.

public bool IsNegativeInfinityAllowed { get; set; }

Property Value

bool:

true if NegativeInfinity is accepted as a value; otherwise, false. The default value is false.

IsPositiveInfinityAllowed

Gets or sets whether PositiveInfinity is accepted as a value.

public bool IsPositiveInfinityAllowed { get; set; }

Property Value

bool:

true if PositiveInfinity is accepted as a value; otherwise, false. The default value is false.

LargeChange

Gets or sets the large change value.

public float LargeChange { get; set; }

Property Value

float:

The large change value. The default value is 5.

Maximum

Gets or sets the highest possible value.

public float Maximum { get; set; }

Property Value

float:

The highest possible value.

Minimum

Gets or sets the lowest possible value.

public float Minimum { get; set; }

Property Value

float:

The lowest possible value.

PickerKind

Gets or sets an SingleEditBoxPickerKind indicating the pre-defined Style to apply to the picker used within the popup.

public SingleEditBoxPickerKind PickerKind { get; set; }

Property Value

SingleEditBoxPickerKind:

An SingleEditBoxPickerKind indicating the pre-defined Style to apply to the picker used within the popup. The default value is Calculator in WPF and Default in UWP.

RoundingDecimalPlace

Gets or sets the rounding decimal place.

public int? RoundingDecimalPlace { get; set; }

Property Value

int?:

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

SmallChange

Gets or sets the small change value.

public float SmallChange { get; set; }

Property Value

float:

The small change value. The default value is 1.

Methods

ApplyStandardValues(FrameworkElement)

Applies standard values to the specified target element.

protected override void ApplyStandardValues(FrameworkElement targetElement)
Parameter Type Description
targetElement FrameworkElement

The target element.

GetEditBoxType()

Gets the type of the associated PartEditBoxBase-derived control.

protected override Type GetEditBoxType()

Returns

Type:

The type of the associated PartEditBoxBase-derived control.

Fields

CanSnapToChangePrecisionProperty

Identifies the CanSnapToChangePrecision dependency property. This field is read-only.

public static readonly DependencyProperty CanSnapToChangePrecisionProperty

DefaultValueProperty

Identifies the DefaultValue dependency property. This field is read-only.

public static readonly DependencyProperty DefaultValueProperty

FormatProperty

Identifies the Format dependency property. This field is read-only.

public static readonly DependencyProperty FormatProperty

IsNaNAllowedProperty

Identifies the IsNaNAllowed dependency property. This field is read-only.

public static readonly DependencyProperty IsNaNAllowedProperty

IsNegativeInfinityAllowedProperty

Identifies the IsNegativeInfinityAllowed dependency property. This field is read-only.

public static readonly DependencyProperty IsNegativeInfinityAllowedProperty

IsPositiveInfinityAllowedProperty

Identifies the IsPositiveInfinityAllowed dependency property. This field is read-only.

public static readonly DependencyProperty IsPositiveInfinityAllowedProperty

LargeChangeProperty

Identifies the LargeChange dependency property. This field is read-only.

public static readonly DependencyProperty LargeChangeProperty

MaximumProperty

Identifies the Maximum dependency property. This field is read-only.

public static readonly DependencyProperty MaximumProperty

MinimumProperty

Identifies the Minimum dependency property. This field is read-only.

public static readonly DependencyProperty MinimumProperty

PickerKindProperty

Identifies the PickerKind dependency property. This field is read-only.

public static readonly DependencyProperty PickerKindProperty

RoundingDecimalPlaceProperty

Identifies the RoundingDecimalPlace dependency property. This field is read-only.

public static readonly DependencyProperty RoundingDecimalPlaceProperty

SmallChangeProperty

Identifies the SmallChange dependency property. This field is read-only.

public static readonly DependencyProperty SmallChangeProperty

Inherited Members