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 class.
public DataGridSingleColumn()
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:
trueif the value should be snapped to the precision of the incremental change value prior to applying the increment; otherwise,false. The default value istrue.
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.
Format
The number format string.
HasPopup
Indicates whether the control has a popup available.
public bool HasPopup { get; set; }
Property Value
- bool:
trueif the control has a popup available; otherwisefalse. The default value isfalse.
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:
trueif the left/right arrow keys can be used to move between and select editable parts; otherwisefalse. The default value isfalse.
IsNaNAllowed
Indicates whether NaN is accepted as a value.
public bool IsNaNAllowed { get; set; }
Property Value
IsNegativeInfinityAllowed
Indicates whether NegativeInfinity is accepted as a value.
public bool IsNegativeInfinityAllowed { get; set; }
Property Value
- bool:
trueif NegativeInfinity is accepted as a value; otherwise,false. The default value isfalse.
IsPositiveInfinityAllowed
Indicates whether PositiveInfinity is accepted as a value.
public bool IsPositiveInfinityAllowed { get; set; }
Property Value
- bool:
trueif PositiveInfinity is accepted as a value; otherwise,false. The default value isfalse.
LargeChange
The large change value.
Maximum
The highest possible value.
Minimum
The lowest possible value.
PickerKind
An SingleEditBoxPickerKind indicating the pre-defined Style to apply to the picker used within the popup.
public SingleEditBoxPickerKind PickerKind { get; set; }
Property Value
- SingleEditBoxPickerKind:
The default value is Calculator.
RoundingDecimalPlace
The rounding decimal place.
public int? RoundingDecimalPlace { get; set; }
Property Value
- int?:
The rounding decimal place, which is a value between
0and6. Pass anullvalue to disable rounding. The default value is6.
SmallChange
The small change value.
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.
Fields
CanSnapToChangePrecisionProperty
Defines the CanSnapToChangePrecision property.
public static readonly DependencyProperty CanSnapToChangePrecisionProperty
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
PickerKindProperty
Defines the PickerKind property.
public static readonly DependencyProperty PickerKindProperty
RoundingDecimalPlaceProperty
Defines the RoundingDecimalPlace property.
public static readonly DependencyProperty RoundingDecimalPlaceProperty
SmallChangeProperty
Defines the SmallChange property.
public static readonly DependencyProperty SmallChangeProperty
Inherited Members
- DataGridPartEditBoxColumnBase<float?>.CommitTriggersProperty
- DataGridPartEditBoxColumnBase<float?>.HasPopupProperty
- DataGridPartEditBoxColumnBase<float?>.IsArrowKeyPartNavigationEnabledProperty
- DataGridPartEditBoxColumnBase<float?>.IsEditableProperty
- DataGridPartEditBoxColumnBase<float?>.IsNullAllowedProperty
- DataGridPartEditBoxColumnBase<float?>.IsUndoEnabledProperty
- DataGridPartEditBoxColumnBase<float?>.PlaceholderTextProperty
- DataGridPartEditBoxColumnBase<float?>.SpinnerVisibilityProperty
- DataGridPartEditBoxColumnBase<float?>.SpinWrappingProperty
- DataGridPartEditBoxColumnBase<float?>.TextAlignmentProperty
- DataGridPartEditBoxColumnBase<float?>.GenerateEditBox(bool, DataGridCell)
- DataGridPartEditBoxColumnBase<float?>.GenerateEditingElement(DataGridCell, object)
- DataGridPartEditBoxColumnBase<float?>.GenerateElement(DataGridCell, object)
- DataGridPartEditBoxColumnBase<float?>.PrepareCellForEdit(FrameworkElement, RoutedEventArgs)
- DataGridPartEditBoxColumnBase<float?>.DefaultEditingElementStyle
- DataGridPartEditBoxColumnBase<float?>.DefaultElementStyle
- DataGridPartEditBoxColumnBase<float?>.CommitTriggers
- DataGridPartEditBoxColumnBase<float?>.IsEditable
- DataGridPartEditBoxColumnBase<float?>.IsNullAllowed
- DataGridPartEditBoxColumnBase<float?>.IsUndoEnabled
- DataGridPartEditBoxColumnBase<float?>.PlaceholderText
- DataGridPartEditBoxColumnBase<float?>.SpinWrapping
- DataGridPartEditBoxColumnBase<float?>.TextAlignment
- DataGridBoundColumnBase.ApplyBinding(FrameworkElement, DependencyProperty)
- DataGridBoundColumnBase.ApplyValue(DependencyProperty, FrameworkElement, DependencyProperty)
- DataGridBoundColumnBase.RefreshCellContent(FrameworkElement, string)