Class TimeUpDown
Represents a control that uses a spinner and textbox to allow a user to input time.
Inherited Members
Namespace: System.Windows.Controls
Assembly: OpenSilver.dll
Syntax
[NotImplemented]
public class TimeUpDown : UpDownBase
Fields
| Improve this Doc View SourceCultureProperty
Identifies the Culture dependency property.
Declaration
[NotImplemented]
public static readonly DependencyProperty CultureProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
FormatProperty
Identifies the Format dependency property.
Declaration
[NotImplemented]
public static readonly DependencyProperty FormatProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
MaximumProperty
Identifies the Maximum dependency property.
Declaration
[NotImplemented]
public static readonly DependencyProperty MaximumProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
MinimumProperty
Identifies the Minimum dependency property.
Declaration
[NotImplemented]
public static readonly DependencyProperty MinimumProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
TimeGlobalizationInfoProperty
Identifies the TimeGlobalizationInfo dependency property.
Declaration
[NotImplemented]
public static readonly DependencyProperty TimeGlobalizationInfoProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
TimeParsersProperty
Identifies the TimeParsers dependency property.
Declaration
[NotImplemented]
public static readonly DependencyProperty TimeParsersProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceActualTimeGlobalizationInfo
Gets the actual TimeGlobalization info used by the control.
Declaration
[NotImplemented]
public TimeGlobalizationInfo ActualTimeGlobalizationInfo { get; }
Property Value
Type | Description |
---|---|
TimeGlobalizationInfo |
Remarks
If TimeGlobalizationInfo is not set, will return default TimeGlobalizationInfo instance.
Culture
Gets or sets the culture that will be used by the control for parsing and formatting.
Declaration
[NotImplemented]
public CultureInfo Culture { get; set; }
Property Value
Type | Description |
---|---|
System.Globalization.CultureInfo |
Format
Gets or sets the Format used by the control. From XAML Use either "Short", "Long" or a custom format. Custom formats can only contain "H", "h", "m", "s" or "t". For example: use 'hh:mm:ss' is used to format time as "13:45:30".
Declaration
[NotImplemented]
public ITimeFormat Format { get; set; }
Property Value
Type | Description |
---|---|
ITimeFormat |
Maximum
Gets or sets the maximum time considered valid by the control.
Declaration
[NotImplemented]
public DateTime? Maximum { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
Remarks
Setting the Maximum property is applicable for the following features: Parsing a new value from the textbox, spinning a new value and programmatically specifying a value.
Minimum
Gets or sets the minimum time considered valid by the control.
Declaration
[NotImplemented]
public DateTime? Minimum { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
Remarks
Setting the minimum property is applicable for the following features: Parsing a new value from the textbox, spinning a new value and programmatically specifying a value.
TimeGlobalizationInfo
Gets or sets the strategy object that determines how the control interacts with DateTime and CultureInfo.
Declaration
[NotImplemented]
public TimeGlobalizationInfo TimeGlobalizationInfo { get; set; }
Property Value
Type | Description |
---|---|
TimeGlobalizationInfo |
TimeParsers
Gets or sets a collection of TimeParsers that are used when parsing text to time.
Declaration
[NotImplemented]
public TimeParserCollection TimeParsers { get; set; }
Property Value
Type | Description |
---|---|
TimeParserCollection |
Methods
| Improve this Doc View SourceGetValue()
Declaration
[NotImplemented]
public override object GetValue()
Returns
Type | Description |
---|---|
System.Object |
Overrides
| Improve this Doc View SourceOnMaximumChanged(Nullable<DateTime>, Nullable<DateTime>)
Called when the Maximum property value has changed.
Declaration
[NotImplemented]
protected virtual void OnMaximumChanged(DateTime? oldValue, DateTime? newValue)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.DateTime> | oldValue | Old value of the Maximum property. |
System.Nullable<System.DateTime> | newValue | New value of the Maximum property. |
OnMinimumChanged(Nullable<DateTime>, Nullable<DateTime>)
Called when the Minimum property value has changed.
Declaration
[NotImplemented]
protected virtual void OnMinimumChanged(DateTime? oldValue, DateTime? newValue)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.DateTime> | oldValue | Old value of the Minimum property. |
System.Nullable<System.DateTime> | newValue | New value of the Minimum property. |
SetValue(Object)
Declaration
[NotImplemented]
public override void SetValue(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value |