[]
The C1DateTimePicker controls allows editing DateTime values.
[StyleTypedProperty(Property = "PopupStyle", StyleTargetType = typeof(C1PopupBorder))]
[StyleTypedProperty(Property = "ValidationDecoratorStyle", StyleTargetType = typeof(C1ValidationDecorator))]
[TemplatePart(Name = "DatePicker", Type = typeof(C1DatePicker))]
[TemplatePart(Name = "TimeEditor", Type = typeof(C1TimeEditor))]
[TemplatePart(Name = "ValidationDecorator", Type = typeof(C1ValidationDecorator))]
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
[TemplateVisualState(Name = "MouseOver", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Focused", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Disabled", GroupName = "CommonStates")]
public class C1DateTimePicker : C1View
| Name | Description |
|---|---|
| C1DateTimePicker() | Initializes a new instance of the C1DateTimePicker class. |
| Name | Description |
|---|---|
| AllowNullProperty | Identifies the AllowNull dependency property. |
| CaretBrushProperty | Identifies the CaretBrush dependency property. |
| CustomDateFormatProperty | Identifies the CustomDateFormat dependency property. |
| CustomTimeFormatProperty | Identifies the CustomTimeFormat dependency property. |
| DateFormatProperty | Identifies the DateFormat dependency property. |
| DateMaskProperty | Identifies the DateMask dependency property. |
| DatePlaceholderProperty | Identifies the DatePlaceholder dependency property. |
| DateTimeProperty | Identifies the DateTime dependency property. |
| EditModeProperty | Identifies the EditMode dependency property. |
| FirstDayOfWeekProperty | Identifies the FirstDayOfWeek dependency property. |
| FocusBrushProperty | Identifies the FocusBrush dependency property. |
| IsDropDownOpenProperty | Identifies the IsDropDownOpen dependency property. |
| IsReadOnlyProperty | Identifies the IsReadOnly dependency property. |
| MaxDateProperty | Identifies the MaxDate dependency property. |
| MinDatePickerWidthProperty | Identifies the MinDatePickerWidth dependency property. |
| MinDateProperty | Identifies the MinDate dependency property. |
| MinTimeEditorWidthProperty | Identifies the MinTimeEditorWidth dependency property. |
| MouseOverBorderBrushProperty | Identifies the MouseOverBorderBrush dependency property. |
| MouseOverBrushProperty | Identifies the MouseOverBrush dependency property. |
| PopupStyleProperty | Identifies the PopupStyle dependency property. |
| PressedBrushProperty | Identifies the PressedBrush dependency property. |
| PromptProperty | Identifies the Prompt dependency property. |
| SeparatorWidthProperty | Identifies the SeparatorWidth dependency property. |
| TimeFormatProperty | Identifies the TimeFormat dependency property. |
| TimeIncrementProperty | Identifies the TimeIncrement dependency property. |
| TimeMaskProperty | Identifies the TimeMask dependency property. |
| TimePlaceholderProperty | Identifies the TimePlaceholder dependency property. |
| ValidationDecoratorStyleProperty | Identifies the ValidationDecoratorStyle dependency property. |
| Name | Description |
|---|---|
| AllowNull | Gets or sets whether the user can enter null values. |
| BlackoutDates | Gets the days that are not selectable. |
| CaretBrush | Gets or sets the Brush of the blinking cursor of an input control. |
| CustomDateFormat | Gets or sets the custom date format string. |
| CustomTimeFormat | Gets or sets the custom time format string. |
| DateFormat | Specifies the C1DatePickerFormat format that is used to display the selected date. |
| DateMask | Gets or sets the input mask for the date part. |
| DatePlaceholder | Gets or sets the date part placeholder text. |
| DateTime | Gets or sets a DateTime that is selected in the control. |
| EditMode | Gets or sets the edit mode. |
| FirstDayOfWeek | Gets or sets the day that is considered the beginning of the week. |
| FocusBrush | Gets or sets the Brush used to highlight the focused control. |
| IsDropDownOpen | Gets or sets a value indicating whether the drop-down calendar is opened or closed. |
| IsFocused | Gets whether the control is focused. |
| IsReadOnly | Gets or sets the value that determines if the C1DateTimePicker is read-only. |
| MaxDate | Gets or sets the maximum DateTime allowed for the C1DateTimePicker. |
| MinDate | Gets or sets the minimum DateTime value allowed for the C1DateTimePicker. |
| MinDatePickerWidth | Gets or sets minimum width constraint of the date picker part. |
| MinTimeEditorWidth | Gets or sets minimum width constraint of the time editor part. |
| MouseOverBorderBrush | Gets or sets the Brush used to highlight the border of the control when it has the mouse over. |
| MouseOverBrush | Gets or sets the Brush used to highlight the control when it has the mouse over. |
| PopupStyle | Gets or sets the style of the popup. |
| PressedBrush | Gets or sets the Brush used to paint a button when it is pressed. |
| Prompt | Gets or sets the character used to show spaces where user is supposed to type. |
| SeparatorWidth | Gets or sets the width of space between Date and Time parts. |
| TimeFormat | Specifies the C1TimeEditorFormat format that is used to display the selected time. |
| TimeIncrement | Gets or sets the increment applied when the user pressed the up/down arrow keys in a time part. |
| TimeMask | Gets or sets the input mask for the time part. |
| TimePlaceholder | Gets or sets the time part placeholder text. |
| ValidationDecoratorStyle | Gets or sets the style that is applied to the inner C1.WPF.Input.C1ValidationDecorator. |
| Name | Description |
|---|---|
| ChangeVisualStateCommon(bool) | Updates the current visual state of the Common visual state group to match the object's properties. |
| Dispose(bool) | |
| FinalizeEditing() | Forces the DateTime property value update. |
| OnApplyTemplate() | |
| OnDateTimeChanged(NullablePropertyChangedEventArgs<DateTime>) | Raises the DateTime event. |
| OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs) | |
| OnSelectionCommitted() | Fires the SelectionCommitted event. |
| ToString() | Provides a text representation of the DateTime property. |
| Name | Description |
|---|---|
| DateTimeChanged | Fires when the DateTime property changes. |
| DateValidationError | Occurs when text entered into the DatePicker cannot be parsed or the Date is not valid to be selected. |
| SelectionCommitted | The SelectionCommitted event is fired when the new DateTime property value is committed. |