Table of Contents

Class TimePicker

Namespace
Wpf.Ui.Controls
Assembly
Wpf.Ui.dll

Represents a control that allows a user to pick a time value.

public class TimePicker : ButtonBase, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, ICommandSource
Inheritance
TimePicker
Implements
Inherited Members

Fields

ClockIdentifierProperty

Identifies the ClockIdentifier dependency property.

public static readonly DependencyProperty ClockIdentifierProperty

Field Value

DependencyProperty

HeaderProperty

Identifies the Header dependency property.

public static readonly DependencyProperty HeaderProperty

Field Value

DependencyProperty

MinuteIncrementProperty

Identifies the MinuteIncrement dependency property.

public static readonly DependencyProperty MinuteIncrementProperty

Field Value

DependencyProperty

SelectedTimeProperty

Identifies the SelectedTime dependency property.

public static readonly DependencyProperty SelectedTimeProperty

Field Value

DependencyProperty

TimeProperty

Identifies the Time dependency property.

public static readonly DependencyProperty TimeProperty

Field Value

DependencyProperty

Properties

ClockIdentifier

Gets or sets the clock system to use.

public ClockIdentifier ClockIdentifier { get; set; }

Property Value

ClockIdentifier

Header

Gets or sets the content for the control's header.

public object? Header { get; set; }

Property Value

object

MinuteIncrement

Gets or sets a value that indicates the time increments shown in the minute picker. For example, 15 specifies that the TimePicker minute control displays only the choices 00, 15, 30, 45.

public int MinuteIncrement { get; set; }

Property Value

int

SelectedTime

Gets or sets the time currently selected in the time picker

public TimeSpan? SelectedTime { get; set; }

Property Value

TimeSpan?

Time

Gets or sets the time currently set in the time picker.

public TimeSpan Time { get; set; }

Property Value

TimeSpan