Class TableViewTimeColumn
Represents a column in a TableView that displays time.
[StyleTypedProperty(Property = "ElementStyle", StyleTargetType = typeof(TextBlock))]
[StyleTypedProperty(Property = "EditingElementStyle", StyleTargetType = typeof(TableViewTimePicker))]
[GeneratedBindableCustomProperty]
public class TableViewTimeColumn : TableViewBoundColumn, IWinRTObject
- Inheritance
-
objectDependencyObjectTableViewTimeColumn
- Implements
-
IWinRTObject
- Inherited Members
Constructors
TableViewTimeColumn()
Initializes a new instance of the TableViewTimeColumn class.
public TableViewTimeColumn()
Fields
ClockIdentifierProperty
Identifies the ClockIdentifier dependency property.
public static readonly DependencyProperty ClockIdentifierProperty
Field Value
- DependencyProperty
MinuteIncrementProperty
Identifies the MinuteIncrement dependency property.
public static readonly DependencyProperty MinuteIncrementProperty
Field Value
- DependencyProperty
PlaceholderTextProperty
Identifies the PlaceholderText dependency property.
public static readonly DependencyProperty PlaceholderTextProperty
Field Value
- DependencyProperty
Properties
ClockIdentifier
Gets or sets the clock identifier for the time picker.
public string ClockIdentifier { get; set; }
Property Value
- string
MinuteIncrement
Gets or sets the minute increment for the time picker.
public int MinuteIncrement { get; set; }
Property Value
- int
PlaceholderText
Gets or sets the placeholder text for the time picker.
public string? PlaceholderText { get; set; }
Property Value
- string
Methods
EndCellEditing(TableViewCell, object?, TableViewEditAction, object?)
Called to end the editing session for the cell.
protected override void EndCellEditing(TableViewCell cell, object? dataItem, TableViewEditAction editAction, object? uneditedValue)
Parameters
cellTableViewCellThe cell whose editing session is being ended.
dataItemobjectThe data item associated with the cell.
editActionTableViewEditActionThe edit action.
uneditedValueobjectThe unedited value of the cell.
GenerateEditingElement(TableViewCell, object?)
Generates a TableViewTimePicker element for editing the cell.
public override FrameworkElement GenerateEditingElement(TableViewCell cell, object? dataItem)
Parameters
cellTableViewCellThe cell for which the editing element is generated.
dataItemobjectThe data item associated with the cell.
Returns
- FrameworkElement
A TableViewTimePicker element.
GenerateElement(TableViewCell, object?)
Generates a TextBlock element for the cell.
public override FrameworkElement GenerateElement(TableViewCell cell, object? dataItem)
Parameters
cellTableViewCellThe cell for which the element is generated.
dataItemobjectThe data item associated with the cell.
Returns
- FrameworkElement
A TextBlock element.
PrepareCellForEdit(TableViewCell, RoutedEventArgs)
Called to prepare the cell for editing.
protected override object? PrepareCellForEdit(TableViewCell cell, RoutedEventArgs routedEvent)
Parameters
cellTableViewCellThe cell to prepare for editing.
routedEventRoutedEventArgsThe routed event.
Returns
- object
Should return the unedited cell value.