In This Article

TimePicker Class

Represents a time picker.

public class TimePicker : PickerBase
Inheritance:
object Visual UIElement FrameworkElement Control PickerBase object

Constructors

TimePicker()

Initializes an instance of the class.

public TimePicker()

Properties

Hour

The hour value.

public int Hour { get; set; }

Property Value

int

HourDegreeMaximum

The highest possible hour degree value, which can be bound to a radial slider.

public double HourDegreeMaximum { get; }

Property Value

double

HourDegreeMinimum

The lowest possible hour degree value, which can be bound to a radial slider.

public double HourDegreeMinimum { get; }

Property Value

double

HourDegreeValue

The hour value in degrees.

public int HourDegreeValue { get; set; }

Property Value

int

IsNullAllowed

Indicates whether null values are allowed to be entered by the user.

public bool IsNullAllowed { get; set; }

Property Value

bool:

true if null values are allowed to be entered by the user; otherwise false. The default value is false.

IsPM

Gets whether the time is PM.

public bool IsPM { get; }

Property Value

bool:

true if the time is PM; otherwise, false.

Maximum

The highest possible value.

public DateTime Maximum { get; set; }

Property Value

DateTime

Minimum

The lowest possible value.

public DateTime Minimum { get; set; }

Property Value

DateTime

Minute

The minute value.

public int Minute { get; set; }

Property Value

int

MinuteDegreeMaximum

The highest possible minute degree value, which can be bound to a radial slider.

public double MinuteDegreeMaximum { get; }

Property Value

double

MinuteDegreeMinimum

The lowest possible minute degree value, which can be bound to a radial slider.

public double MinuteDegreeMinimum { get; }

Property Value

double

MinuteDegreeValue

The minute value in degrees.

public int MinuteDegreeValue { get; set; }

Property Value

int

Value

The value of the control.

public DateTime? Value { get; set; }

Property Value

DateTime?

Methods

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().

public override void OnApplyTemplate()

Events

ValueChanged

Occurs after the Value property value changes.

public event EventHandler? ValueChanged

Event Type

EventHandler

Fields

HourDegreeMaximumProperty

Defines the HourDegreeMaximum property.

public static readonly DependencyProperty HourDegreeMaximumProperty

HourDegreeMinimumProperty

Defines the HourDegreeMinimum property.

public static readonly DependencyProperty HourDegreeMinimumProperty

HourDegreeValueProperty

Defines the HourDegreeValue property.

public static readonly DependencyProperty HourDegreeValueProperty

HourProperty

Defines the Hour property.

public static readonly DependencyProperty HourProperty

IsNullAllowedProperty

Defines the IsNullAllowed property.

public static readonly DependencyProperty IsNullAllowedProperty

IsPMProperty

Defines the IsPM property.

public static readonly DependencyProperty IsPMProperty

MaximumProperty

Defines the Maximum property.

public static readonly DependencyProperty MaximumProperty

MinimumProperty

Defines the Minimum property.

public static readonly DependencyProperty MinimumProperty

MinuteDegreeMaximumProperty

Defines the MinuteDegreeMaximum property.

public static readonly DependencyProperty MinuteDegreeMaximumProperty

MinuteDegreeMinimumProperty

Defines the MinuteDegreeMinimum property.

public static readonly DependencyProperty MinuteDegreeMinimumProperty

MinuteDegreeValueProperty

Defines the MinuteDegreeValue property.

public static readonly DependencyProperty MinuteDegreeValueProperty

MinuteProperty

Defines the Minute property.

public static readonly DependencyProperty MinuteProperty

ValueProperty

Defines the Value property.

public static readonly DependencyProperty ValueProperty

Inherited Members

Extension Methods