In This Article

DateTimePropertyEditor Class

Represents a PropertyEditor for editing a DateTime value with a DateTimeEditBox.

public class DateTimePropertyEditor : PartEditBoxPropertyEditorBase
Inheritance:
object ObservableObjectBase PropertyEditor PropertyEditorBase PartEditBoxPropertyEditorBase object
Derived:
DatePropertyEditor NullableDateTimePropertyEditor TimePropertyEditor

Constructors

DateTimePropertyEditor()

Initializes an instance of the class.

public DateTimePropertyEditor()

DateTimePropertyEditor(Type)

Initializes an instance of the class.

protected DateTimePropertyEditor(Type propertyType)
Parameter Type Description
propertyType Type

The type of the property.

Properties

Format

The date/time format string.

public string Format { get; set; }

Property Value

string:

The default value is "g".

Maximum

The highest possible value.

public DateTime Maximum { get; set; }

Property Value

DateTime

Minimum

The lowest possible value.

public DateTime Minimum { get; set; }

Property Value

DateTime

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

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.

Inherited Members

Extension Methods