In This Article

TimeSpanPropertyEditor Class

Represents a PropertyEditor for editing a TimeSpan value with a TimeSpanEditBox.

public class TimeSpanPropertyEditor : PartEditBoxPropertyEditorBase
Inheritance:
object ObservableObjectBase PropertyEditor PropertyEditorBase PartEditBoxPropertyEditorBase object
Derived:
NullableTimeSpanPropertyEditor

Constructors

TimeSpanPropertyEditor()

Initializes an instance of the class.

public TimeSpanPropertyEditor()

TimeSpanPropertyEditor(Type)

Initializes an instance of the class.

protected TimeSpanPropertyEditor(Type propertyType)
Parameter Type Description
propertyType Type

The type of the property.

Properties

DefaultValue

The value to set when incrementing/decrementing from a null value.

public TimeSpan DefaultValue { get; set; }

Property Value

TimeSpan:

The default value is 0.

Format

The number format string.

public string Format { get; set; }

Property Value

string:

The default value is "c".

HasPopup

Indicates whether the control has a popup available.

public bool HasPopup { get; set; }

Property Value

bool:

true if the control has a popup available; otherwise false. The default value is true.

LargeChange

The large change value.

public TimeSpan LargeChange { get; set; }

Property Value

TimeSpan:

The default value is 7.3:5:5:050.

Maximum

The highest possible value.

public TimeSpan Maximum { get; set; }

Property Value

TimeSpan

Minimum

The lowest possible value.

public TimeSpan Minimum { get; set; }

Property Value

TimeSpan

PredefinedValueTemplateKey

The resource key that references a pre-defined DataTemplate within internal resources to use for editing the property value.

protected override object PredefinedValueTemplateKey { get; }

Property Value

object

SmallChange

The small change value.

public TimeSpan SmallChange { get; set; }

Property Value

TimeSpan:

The default value is 1.1:1:1:1.

SpinWrapping

The wrapping behavior used when spinning past a minimum or maximum value in the active part.

public SpinWrapping SpinWrapping { get; set; }

Property Value

SpinWrapping:

The default value is Wrap.

SpinnerVisibility

Indicates if and when the control has a spinner available.

public SpinnerVisibility SpinnerVisibility { get; set; }

Property Value

SpinnerVisibility:

The default value is VisibleWhenActive.

Inherited Members

Extension Methods