DataGridTimeSpanColumn Class
Represents a data-bound column for use in a DataGrid that utilizes the TimeSpanEditBox control.
public class DataGridTimeSpanColumn : DataGridPartEditBoxColumnBase<TimeSpan?>
- Inheritance:
- object DataGridColumn DataGridBoundColumn DataGridBoundColumnBase DataGridPartEditBoxColumnBase<TimeSpan?> object
Constructors
DataGridTimeSpanColumn()
Initializes an instance of the class.
public DataGridTimeSpanColumn()
Properties
DefaultValue
The value to set when incrementing/decrementing from a null value.
Format
The timespan 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.
LargeChange
The large change value.
Maximum
The highest possible value.
Minimum
The lowest possible value.
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
DefaultValueProperty
Defines the DefaultValue property.
public static readonly DependencyProperty DefaultValueProperty
FormatProperty
Defines the Format property.
public static readonly DependencyProperty FormatProperty
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
SmallChangeProperty
Defines the SmallChange property.
public static readonly DependencyProperty SmallChangeProperty
Inherited Members
- DataGridPartEditBoxColumnBase<TimeSpan?>.CommitTriggersProperty
- DataGridPartEditBoxColumnBase<TimeSpan?>.HasPopupProperty
- DataGridPartEditBoxColumnBase<TimeSpan?>.IsArrowKeyPartNavigationEnabledProperty
- DataGridPartEditBoxColumnBase<TimeSpan?>.IsEditableProperty
- DataGridPartEditBoxColumnBase<TimeSpan?>.IsNullAllowedProperty
- DataGridPartEditBoxColumnBase<TimeSpan?>.IsUndoEnabledProperty
- DataGridPartEditBoxColumnBase<TimeSpan?>.PlaceholderTextProperty
- DataGridPartEditBoxColumnBase<TimeSpan?>.SpinnerVisibilityProperty
- DataGridPartEditBoxColumnBase<TimeSpan?>.SpinWrappingProperty
- DataGridPartEditBoxColumnBase<TimeSpan?>.TextAlignmentProperty
- DataGridPartEditBoxColumnBase<TimeSpan?>.GenerateEditBox(bool, DataGridCell)
- DataGridPartEditBoxColumnBase<TimeSpan?>.GenerateEditingElement(DataGridCell, object)
- DataGridPartEditBoxColumnBase<TimeSpan?>.GenerateElement(DataGridCell, object)
- DataGridPartEditBoxColumnBase<TimeSpan?>.PrepareCellForEdit(FrameworkElement, RoutedEventArgs)
- DataGridPartEditBoxColumnBase<TimeSpan?>.DefaultEditingElementStyle
- DataGridPartEditBoxColumnBase<TimeSpan?>.DefaultElementStyle
- DataGridPartEditBoxColumnBase<TimeSpan?>.CommitTriggers
- DataGridPartEditBoxColumnBase<TimeSpan?>.IsArrowKeyPartNavigationEnabled
- DataGridPartEditBoxColumnBase<TimeSpan?>.IsEditable
- DataGridPartEditBoxColumnBase<TimeSpan?>.IsNullAllowed
- DataGridPartEditBoxColumnBase<TimeSpan?>.IsUndoEnabled
- DataGridPartEditBoxColumnBase<TimeSpan?>.PlaceholderText
- DataGridPartEditBoxColumnBase<TimeSpan?>.SpinWrapping
- DataGridPartEditBoxColumnBase<TimeSpan?>.TextAlignment
- DataGridBoundColumnBase.ApplyBinding(FrameworkElement, DependencyProperty)
- DataGridBoundColumnBase.ApplyValue(DependencyProperty, FrameworkElement, DependencyProperty)
- DataGridBoundColumnBase.RefreshCellContent(FrameworkElement, string)