In This Article

TimeSpanPicker Class

Represents a TimeSpan picker.

[TemplatePart(Name = "PART_PartSelector", Type = typeof(Selector))]
[TemplatePart(Name = "PART_ValuePicker", Type = typeof(Int32Picker))]
public class TimeSpanPicker : PickerBase
Inheritance:
object Visual UIElement FrameworkElement Control PickerBase object

Constructors

TimeSpanPicker()

Initializes an instance of the class.

public TimeSpanPicker()

Properties

Days

The days component (0 - 255) of the Value.

public int Days { get; }

Property Value

int

EditableParts

The editable parts.

public TimeSpanEditableParts EditableParts { get; set; }

Property Value

TimeSpanEditableParts

Hours

The hours component (0 - 23) of the Value.

public int Hours { get; }

Property Value

int

Maximum

The highest possible value.

public TimeSpan Maximum { get; set; }

Property Value

TimeSpan

Milliseconds

The milliseconds component (0 - 999) of the Value.

public int Milliseconds { get; }

Property Value

int

Minimum

The lowest possible value.

public TimeSpan Minimum { get; set; }

Property Value

TimeSpan

Minutes

The minutes component (0 - 59) of the Value.

public int Minutes { get; }

Property Value

int

Seconds

The seconds component (0 - 59) of the Value.

public int Seconds { get; }

Property Value

int

SmallChange

The small change value.

public TimeSpan SmallChange { get; set; }

Property Value

TimeSpan:

The default value is 1.0.

Value

The value of the control.

public TimeSpan Value { get; set; }

Property Value

TimeSpan

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

DaysProperty

Defines the Days property.

public static readonly DependencyProperty DaysProperty

EditablePartsProperty

Defines the EditableParts property.

public static readonly DependencyProperty EditablePartsProperty

HoursProperty

Defines the Hours property.

public static readonly DependencyProperty HoursProperty

MaximumProperty

Defines the Maximum property.

public static readonly DependencyProperty MaximumProperty

MillisecondsProperty

Defines the Milliseconds property.

public static readonly DependencyProperty MillisecondsProperty

MinimumProperty

Defines the Minimum property.

public static readonly DependencyProperty MinimumProperty

MinutesProperty

Defines the Minutes property.

public static readonly DependencyProperty MinutesProperty

SecondsProperty

Defines the Seconds property.

public static readonly DependencyProperty SecondsProperty

SmallChangeProperty

Defines the SmallChange property.

public static readonly DependencyProperty SmallChangeProperty

ValueProperty

Defines the Value property.

public static readonly DependencyProperty ValueProperty

Inherited Members

Extension Methods