DataGridInt32Column Class
Represents a data-bound column for use in a DataGrid
that utilizes the Int32EditBox control.
public class DataGridInt32Column : DataGridPartEditBoxColumnBase<int?>
- Inheritance:
- object DataGridColumn DataGridBoundColumn DataGridBoundColumnBase DataGridPartEditBoxColumnBase<int?> object
Constructors
DataGridInt32Column()
Initializes an instance of the DataGridInt32Column class.
public DataGridInt32Column()
Properties
DefaultValue
Gets or sets the value to set when incrementing/decrementing from a null value.
public int DefaultValue { get; set; }
Property Value
- int:
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
"D"
.
LargeChange
Gets or sets the large change value.
public int LargeChange { get; set; }
Property Value
- int:
The large change value. The default value is
5
.
Maximum
Gets or sets the highest possible value.
Minimum
Gets or sets the lowest possible value.
PickerKind
Gets or sets an Int32EditBoxPickerKind indicating the pre-defined Style
to apply to the picker used within the popup.
public Int32EditBoxPickerKind PickerKind { get; set; }
Property Value
- Int32EditBoxPickerKind:
An Int32EditBoxPickerKind indicating the pre-defined
Style
to apply to the picker used within the popup. The default value isCalculator
in WPF andDefault
in UWP.
SmallChange
Gets or sets the small change value.
public int SmallChange { get; set; }
Property Value
- int:
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
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
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
SmallChangeProperty
Identifies the SmallChange dependency property. This field is read-only.
public static readonly DependencyProperty SmallChangeProperty
Inherited Members
- DataGridPartEditBoxColumnBase<int?>.CommitTriggersProperty
- DataGridPartEditBoxColumnBase<int?>.HasPopupProperty
- DataGridPartEditBoxColumnBase<int?>.IsArrowKeyPartNavigationEnabledProperty
- DataGridPartEditBoxColumnBase<int?>.IsEditableProperty
- DataGridPartEditBoxColumnBase<int?>.IsNullAllowedProperty
- DataGridPartEditBoxColumnBase<int?>.IsUndoEnabledProperty
- DataGridPartEditBoxColumnBase<int?>.PlaceholderTextProperty
- DataGridPartEditBoxColumnBase<int?>.SpinnerVisibilityProperty
- DataGridPartEditBoxColumnBase<int?>.SpinWrappingProperty
- DataGridPartEditBoxColumnBase<int?>.TextAlignmentProperty
- DataGridPartEditBoxColumnBase<int?>.GenerateEditBox(bool, DataGridCell)
- DataGridPartEditBoxColumnBase<int?>.GenerateEditingElement(DataGridCell, object)
- DataGridPartEditBoxColumnBase<int?>.GenerateElement(DataGridCell, object)
- DataGridPartEditBoxColumnBase<int?>.PrepareCellForEdit(FrameworkElement, RoutedEventArgs)
- DataGridPartEditBoxColumnBase<int?>.DefaultEditingElementStyle
- DataGridPartEditBoxColumnBase<int?>.DefaultElementStyle
- DataGridPartEditBoxColumnBase<int?>.CommitTriggers
- DataGridPartEditBoxColumnBase<int?>.HasPopup
- DataGridPartEditBoxColumnBase<int?>.IsArrowKeyPartNavigationEnabled
- DataGridPartEditBoxColumnBase<int?>.IsEditable
- DataGridPartEditBoxColumnBase<int?>.IsNullAllowed
- DataGridPartEditBoxColumnBase<int?>.IsUndoEnabled
- DataGridPartEditBoxColumnBase<int?>.PlaceholderText
- DataGridPartEditBoxColumnBase<int?>.SpinnerVisibility
- DataGridPartEditBoxColumnBase<int?>.SpinWrapping
- DataGridPartEditBoxColumnBase<int?>.TextAlignment
- DataGridBoundColumnBase.ApplyBinding(FrameworkElement, DependencyProperty)
- DataGridBoundColumnBase.ApplyValue(DependencyProperty, FrameworkElement, DependencyProperty)
- DataGridBoundColumnBase.RefreshCellContent(FrameworkElement, string)