In This Article

DataGridThicknessColumn Class

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

public class DataGridThicknessColumn : DataGridPartEditBoxColumnBase<Thickness?>
Inheritance:
object DataGridColumn DataGridBoundColumn DataGridBoundColumnBase DataGridPartEditBoxColumnBase<Thickness?> object

Constructors

DataGridThicknessColumn()

Initializes an instance of the class.

public DataGridThicknessColumn()

Properties

DefaultValue

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

public Thickness DefaultValue { get; set; }

Property Value

Thickness:

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

IsNaNAllowed

Indicates whether NaN is accepted as a component value.

public bool IsNaNAllowed { get; set; }

Property Value

bool:

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

IsNegativeInfinityAllowed

Indicates whether NegativeInfinity is accepted as a component value.

public bool IsNegativeInfinityAllowed { get; set; }

Property Value

bool:

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

IsPositiveInfinityAllowed

Indicates whether PositiveInfinity is accepted as a component value.

public bool IsPositiveInfinityAllowed { get; set; }

Property Value

bool:

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

LargeChange

The large change value.

public Thickness LargeChange { get; set; }

Property Value

Thickness:

The default value is 5.

Maximum

The highest possible value.

public Thickness Maximum { get; set; }

Property Value

Thickness

Minimum

The lowest possible value.

public Thickness Minimum { get; set; }

Property Value

Thickness

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 Thickness SmallChange { get; set; }

Property Value

Thickness:

The default value is 1.

SpinnerVisibility

A value indicating if and when the control has a spinner available.

public SpinnerVisibility SpinnerVisibility { get; set; }

Property Value

SpinnerVisibility:

The default value is VisibleWhenActive.

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()

The type of the associated PartEditBoxBase-derived control.

protected override Type GetEditBoxType()

Returns

Type

Fields

DefaultValueProperty

Defines the DefaultValue property.

public static readonly DependencyProperty DefaultValueProperty

FormatProperty

Defines the Format property.

public static readonly DependencyProperty FormatProperty

IsNaNAllowedProperty

Defines the IsNaNAllowed property.

public static readonly DependencyProperty IsNaNAllowedProperty

IsNegativeInfinityAllowedProperty

Defines the IsNegativeInfinityAllowed property.

public static readonly DependencyProperty IsNegativeInfinityAllowedProperty

IsPositiveInfinityAllowedProperty

Defines the IsPositiveInfinityAllowed property.

public static readonly DependencyProperty IsPositiveInfinityAllowedProperty

LargeChangeProperty

Defines the LargeChange property.

public static readonly DependencyProperty LargeChangeProperty

MaximumProperty

Defines the Maximum property.

public static readonly DependencyProperty MaximumProperty

MinimumProperty

Defines the Minimum property.

public static readonly DependencyProperty MinimumProperty

RoundingDecimalPlaceProperty

Defines the RoundingDecimalPlace property.

public static readonly DependencyProperty RoundingDecimalPlaceProperty

SmallChangeProperty

Defines the SmallChange property.

public static readonly DependencyProperty SmallChangeProperty

Inherited Members

Extension Methods