DataGridTimeSpanColumn Class
Represents a data-bound column for use in a DataGrid
that utilizes the TimeSpanEditBox control.
public class DataGridTimeSpanColumn : DataGridPartEditBoxColumnBase<TimeSpan?>
- Inheritance:
- Object DispatcherObject DependencyObject DataGridColumn DataGridBoundColumn DataGridBoundColumnBase DataGridPartEditBoxColumnBase<Nullable<TimeSpan>> Object
Constructors
DataGridTimeSpanColumn()
Initializes an instance of the DataGridTimeSpanColumn class.
public DataGridTimeSpanColumn()
Properties
DefaultValue
Gets or sets the value to set when incrementing/decrementing from a null value.
public TimeSpan DefaultValue { get; set; }
Property Value
- TimeSpan:
The value to set when incrementing/decrementing from a null value. The default value is
0
.
Format
Gets or sets the timespan format string.
public string Format { get; set; }
Property Value
- String:
The timespan format string. The default value is
"g"
.
LargeChange
Gets or sets the large change value.
public TimeSpan LargeChange { get; set; }
Property Value
- TimeSpan:
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.
SmallChange
Gets or sets the small change value.
public TimeSpan SmallChange { get; set; }
Property Value
- TimeSpan:
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
SmallChangeProperty
Identifies the SmallChange dependency property. This field is read-only.
public static readonly DependencyProperty SmallChangeProperty
Inherited Members
- DataGridPartEditBoxColumnBase<Nullable<TimeSpan>>.CommitTriggersProperty
- DataGridPartEditBoxColumnBase<Nullable<TimeSpan>>.HasPopupProperty
- DataGridPartEditBoxColumnBase<Nullable<TimeSpan>>.IsArrowKeyPartNavigationEnabledProperty
- DataGridPartEditBoxColumnBase<Nullable<TimeSpan>>.IsEditableProperty
- DataGridPartEditBoxColumnBase<Nullable<TimeSpan>>.IsNullAllowedProperty
- DataGridPartEditBoxColumnBase<Nullable<TimeSpan>>.IsUndoEnabledProperty
- DataGridPartEditBoxColumnBase<Nullable<TimeSpan>>.PlaceholderTextProperty
- DataGridPartEditBoxColumnBase<Nullable<TimeSpan>>.SpinnerVisibilityProperty
- DataGridPartEditBoxColumnBase<Nullable<TimeSpan>>.SpinWrappingProperty
- DataGridPartEditBoxColumnBase<Nullable<TimeSpan>>.TextAlignmentProperty
- DataGridPartEditBoxColumnBase<Nullable<TimeSpan>>.GenerateEditBox(Boolean, DataGridCell)
- DataGridPartEditBoxColumnBase<Nullable<TimeSpan>>.GenerateEditingElement(DataGridCell, Object)
- DataGridPartEditBoxColumnBase<Nullable<TimeSpan>>.GenerateElement(DataGridCell, Object)
- DataGridPartEditBoxColumnBase<Nullable<TimeSpan>>.PrepareCellForEdit(FrameworkElement, RoutedEventArgs)
- DataGridPartEditBoxColumnBase<Nullable<TimeSpan>>.DefaultEditingElementStyle
- DataGridPartEditBoxColumnBase<Nullable<TimeSpan>>.DefaultElementStyle
- DataGridPartEditBoxColumnBase<Nullable<TimeSpan>>.CommitTriggers
- DataGridPartEditBoxColumnBase<Nullable<TimeSpan>>.HasPopup
- DataGridPartEditBoxColumnBase<Nullable<TimeSpan>>.IsArrowKeyPartNavigationEnabled
- DataGridPartEditBoxColumnBase<Nullable<TimeSpan>>.IsEditable
- DataGridPartEditBoxColumnBase<Nullable<TimeSpan>>.IsNullAllowed
- DataGridPartEditBoxColumnBase<Nullable<TimeSpan>>.IsUndoEnabled
- DataGridPartEditBoxColumnBase<Nullable<TimeSpan>>.PlaceholderText
- DataGridPartEditBoxColumnBase<Nullable<TimeSpan>>.SpinnerVisibility
- DataGridPartEditBoxColumnBase<Nullable<TimeSpan>>.SpinWrapping
- DataGridPartEditBoxColumnBase<Nullable<TimeSpan>>.TextAlignment
- DataGridBoundColumnBase.ApplyBinding(FrameworkElement, DependencyProperty)
- DataGridBoundColumnBase.ApplyValue(DependencyProperty, FrameworkElement, DependencyProperty)
- DataGridBoundColumnBase.RefreshCellContent(FrameworkElement, String)
- Object.ToString()
- Object.Equals(Object)
- Object.Equals(Object, Object)
- Object.ReferenceEquals(Object, Object)
- Object.GetHashCode()
- Object.GetType()
- Object.MemberwiseClone()