Table of Contents

Class TableViewDateColumn

Namespace
WinUI.TableView
Assembly
WinUI.TableView.dll

Represents a column in a TableView that displays a date.

[StyleTypedProperty(Property = "ElementStyle", StyleTargetType = typeof(TextBlock))]
[StyleTypedProperty(Property = "EditingElementStyle", StyleTargetType = typeof(TableViewDatePicker))]
[GeneratedBindableCustomProperty]
public class TableViewDateColumn : TableViewBoundColumn, IWinRTObject
Inheritance
object
DependencyObject
TableViewDateColumn
Implements
IWinRTObject
Inherited Members

Fields

DateFormatProperty

Identifies the DateFormat dependency property.

public static readonly DependencyProperty DateFormatProperty

Field Value

DependencyProperty

DayOfWeekFormatProperty

Identifies the DayOfWeekFormat dependency property.

public static readonly DependencyProperty DayOfWeekFormatProperty

Field Value

DependencyProperty

FirstDayOfWeekProperty

Identifies the FirstDayOfWeek dependency property.

public static readonly DependencyProperty FirstDayOfWeekProperty

Field Value

DependencyProperty

IsGroupLabelVisibleProperty

Identifies the IsGroupLabelVisible dependency property.

public static readonly DependencyProperty IsGroupLabelVisibleProperty

Field Value

DependencyProperty

IsOutOfScopeEnabledProperty

Identifies the IsOutOfScopeEnabled dependency property.

public static readonly DependencyProperty IsOutOfScopeEnabledProperty

Field Value

DependencyProperty

IsTodayHighlightedProperty

Identifies the IsTodayHighlighted dependency property.

public static readonly DependencyProperty IsTodayHighlightedProperty

Field Value

DependencyProperty

MaxDateProperty

Identifies the MaxDate dependency property.

public static readonly DependencyProperty MaxDateProperty

Field Value

DependencyProperty

MinDateProperty

Identifies the MinDate dependency property.

public static readonly DependencyProperty MinDateProperty

Field Value

DependencyProperty

PlaceHolderTextProperty

Identifies the PlaceHolderText dependency property.

public static readonly DependencyProperty PlaceHolderTextProperty

Field Value

DependencyProperty

Properties

DateFormat

Gets or sets the date format for the column.

public string? DateFormat { get; set; }

Property Value

string

DayOfWeekFormat

Gets or sets the format for the day of the week in date picker.

public string DayOfWeekFormat { get; set; }

Property Value

string

FirstDayOfWeek

Gets or sets the first day of the week in date picker.

public DayOfWeek FirstDayOfWeek { get; set; }

Property Value

DayOfWeek

IsGroupLabelVisible

Gets or sets a value indicating whether the group label is visible in date picker.

public bool IsGroupLabelVisible { get; set; }

Property Value

bool

IsOutOfScopeEnabled

Gets or sets a value indicating whether out-of-scope dates are enabled in date picker.

public bool IsOutOfScopeEnabled { get; set; }

Property Value

bool

IsTodayHighlighted

Gets or sets a value indicating whether today's date is highlighted in date picker.

public bool IsTodayHighlighted { get; set; }

Property Value

bool

MaxDate

Gets or sets the maximum date for the date picker.

public DateTimeOffset MaxDate { get; set; }

Property Value

DateTimeOffset

MinDate

Gets or sets the minimum date for the date picker.

public DateTimeOffset MinDate { get; set; }

Property Value

DateTimeOffset

PlaceHolderText

Gets or sets the placeholder text for the date picker in date 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

cell TableViewCell

The cell whose editing session is being ended.

dataItem object

The data item associated with the cell.

editAction TableViewEditAction

The edit action.

uneditedValue object

The unedited value of the cell.

GenerateEditingElement(TableViewCell, object?)

Generates a TableViewDatePicker element for editing the cell.

public override FrameworkElement GenerateEditingElement(TableViewCell cell, object? dataItem)

Parameters

cell TableViewCell

The cell for which the editing element is generated.

dataItem object

The data item associated with the cell.

Returns

FrameworkElement

A TableViewDatePicker element.

GenerateElement(TableViewCell, object?)

Generates a TextBlock element for the cell.

public override FrameworkElement GenerateElement(TableViewCell cell, object? dataItem)

Parameters

cell TableViewCell

The cell for which the element is generated.

dataItem object

The 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

cell TableViewCell

The cell to prepare for editing.

routedEvent RoutedEventArgs

The routed event.

Returns

object

Should return the unedited cell value.