TimeSpanPicker Class
Represents a TimeSpan
picker.
[TemplatePart(Name = "PART_PartSelector", Type = typeof(Selector))]
[TemplatePart(Name = "PART_ValuePicker", Type = typeof(Int32Picker))]
public class TimeSpanPicker : PickerBase, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient
- Inheritance:
- System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual System.Windows.UIElement System.Windows.FrameworkElement System.Windows.Controls.Control PickerBase Object
Constructors
TimeSpanPicker()
Initializes an instance of the TimeSpanPicker
class.
public TimeSpanPicker()
Properties
Days
Gets the days component (0 - 255) of the Value.
EditableParts
Gets or sets the editable parts.
public TimeSpanEditableParts EditableParts { get; set; }
Property Value
- TimeSpanEditableParts:
The editable parts.
Hours
Gets the hours component (0 - 23) of the Value.
Maximum
Gets or sets the highest possible value.
public TimeSpan Maximum { get; set; }
Property Value
- System.TimeSpan:
The highest possible value.
Milliseconds
Gets the milliseconds component (0 - 999) of the Value.
public int Milliseconds { get; }
Property Value
- System.Int32:
The milliseconds component of the Value.
Minimum
Gets or sets the lowest possible value.
public TimeSpan Minimum { get; set; }
Property Value
- System.TimeSpan:
The lowest possible value.
Minutes
Gets the minutes component (0 - 59) of the Value.
Seconds
Gets the seconds component (0 - 59) of the Value.
SmallChange
Gets or sets the small change value.
public TimeSpan SmallChange { get; set; }
Property Value
- System.TimeSpan:
The small change value. The default value is
1.0
.
Value
Gets or sets the value of the control.
public TimeSpan Value { get; set; }
Property Value
- System.TimeSpan:
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
- System.EventHandler
Fields
DaysProperty
Identifies the Days dependency property. This field is read-only.
public static readonly DependencyProperty DaysProperty
EditablePartsProperty
Identifies the EditableParts dependency property. This field is read-only.
public static readonly DependencyProperty EditablePartsProperty
HoursProperty
Identifies the Hours dependency property. This field is read-only.
public static readonly DependencyProperty HoursProperty
MaximumProperty
Identifies the Maximum dependency property. This field is read-only.
public static readonly DependencyProperty MaximumProperty
MillisecondsProperty
Identifies the Milliseconds dependency property. This field is read-only.
public static readonly DependencyProperty MillisecondsProperty
MinimumProperty
Identifies the Minimum dependency property. This field is read-only.
public static readonly DependencyProperty MinimumProperty
MinutesProperty
Identifies the Minutes dependency property. This field is read-only.
public static readonly DependencyProperty MinutesProperty
SecondsProperty
Identifies the Seconds dependency property. This field is read-only.
public static readonly DependencyProperty SecondsProperty
SmallChangeProperty
Identifies the SmallChange dependency property. This field is read-only.
public static readonly DependencyProperty SmallChangeProperty
ValueProperty
Identifies the Value dependency property. This field is read-only.
public static readonly DependencyProperty ValueProperty
Inherited Members
- PickerBase.OnCreateAutomationPeer()
- System.Object.ToString()
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()
Extension Methods
- FrameworkElementExtensions.AnimateDoubleProperty(String, Double, Double, Double, Nullable<Double>, Nullable<Double>)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, String, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, DependencyProperty, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.GetCurrentSize()