In This Article

TimePicker Class

Represents a time picker.

public class TimePicker : PickerBase, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient
Inheritance:
Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control PickerBase Object

Constructors

TimePicker()

Initializes an instance of the TimePicker class.

public TimePicker()

Properties

Hour

Gets or sets the hour value.

public int Hour { get; set; }

Property Value

Int32:

The hour value.

HourDegreeMaximum

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

public double HourDegreeMaximum { get; }

Property Value

Double:

The highest possible hour degree value.

HourDegreeMinimum

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

public double HourDegreeMinimum { get; }

Property Value

Double:

The lowest possible hour degree value.

HourDegreeValue

Gets or sets the hour value in degrees.

public int HourDegreeValue { get; set; }

Property Value

Int32:

The hour value in degrees.

IsNullAllowed

Gets or sets a value indicating whether null values are allowed to be entered by the user.

public bool IsNullAllowed { get; set; }

Property Value

Boolean:

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

Boolean:

true if the time is PM; otherwise, false.

Maximum

Gets or sets the highest possible value.

public DateTime Maximum { get; set; }

Property Value

DateTime:

The highest possible value.

Minimum

Gets or sets the lowest possible value.

public DateTime Minimum { get; set; }

Property Value

DateTime:

The lowest possible value.

Minute

Gets or sets the minute value.

public int Minute { get; set; }

Property Value

Int32:

The minute value.

MinuteDegreeMaximum

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

public double MinuteDegreeMaximum { get; }

Property Value

Double:

The highest possible minute degree value.

MinuteDegreeMinimum

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

public double MinuteDegreeMinimum { get; }

Property Value

Double:

The lowest possible minute degree value.

MinuteDegreeValue

Gets or sets the minute value in degrees.

public int MinuteDegreeValue { get; set; }

Property Value

Int32:

The degree minute value in degrees.

Value

Gets or sets the value of the control.

public DateTime? Value { get; set; }

Property Value

Nullable<DateTime>:

The value of the control.

Methods

OnApplyTemplate()

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

Identifies the HourDegreeMaximum dependency property. This field is read-only.

public static readonly DependencyProperty HourDegreeMaximumProperty

HourDegreeMinimumProperty

Identifies the HourDegreeMinimum dependency property. This field is read-only.

public static readonly DependencyProperty HourDegreeMinimumProperty

HourDegreeValueProperty

Identifies the HourDegreeValue dependency property. This field is read-only.

public static readonly DependencyProperty HourDegreeValueProperty

HourProperty

Identifies the Hour dependency property. This field is read-only.

public static readonly DependencyProperty HourProperty

IsNullAllowedProperty

Identifies the IsNullAllowed dependency property. This field is read-only.

public static readonly DependencyProperty IsNullAllowedProperty

IsPMProperty

Identifies the IsPM dependency property. This field is read-only.

public static readonly DependencyProperty IsPMProperty

MaximumProperty

Identifies the Maximum dependency property. This field is read-only.

public static readonly DependencyProperty MaximumProperty

MinimumProperty

Identifies the Minimum dependency property. This field is read-only.

public static readonly DependencyProperty MinimumProperty

MinuteDegreeMaximumProperty

Identifies the MinuteDegreeMaximum dependency property. This field is read-only.

public static readonly DependencyProperty MinuteDegreeMaximumProperty

MinuteDegreeMinimumProperty

Identifies the MinuteDegreeMinimum dependency property. This field is read-only.

public static readonly DependencyProperty MinuteDegreeMinimumProperty

MinuteDegreeValueProperty

Identifies the MinuteDegreeValue dependency property. This field is read-only.

public static readonly DependencyProperty MinuteDegreeValueProperty

MinuteProperty

Identifies the Minute dependency property. This field is read-only.

public static readonly DependencyProperty MinuteProperty

ValueProperty

Identifies the Value dependency property. This field is read-only.

public static readonly DependencyProperty ValueProperty

Inherited Members

Extension Methods