[]
        
(Showing Draft Content)

C1.WPF.DateTimeEditors.C1DateTimePicker

C1DateTimePicker Class

The C1DateTimePicker controls allows editing DateTime values.

Namespace: C1.WPF.DateTimeEditors
Assembly: C1.WPF.DateTimeEditors.4.6.2.dll
Syntax
[TemplateVisualState(Name = "MouseOver", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Disabled", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
[TemplatePart(Name = "DatePicker", Type = typeof(C1DatePicker))]
[TemplatePart(Name = "TimeEditor", Type = typeof(C1TimeEditor))]
[TemplatePart(Name = "Root", Type = typeof(FrameworkElement))]
[TemplateVisualState(Name = "Focused", GroupName = "FocusStates")]
[TemplateVisualState(Name = "Unfocused", GroupName = "FocusStates")]
[TemplateVisualState(Name = "Valid", GroupName = "ValidationStatesStates")]
[TemplateVisualState(Name = "InvalidUnfocused", GroupName = "ValidationStatesStates")]
[TemplateVisualState(Name = "InvalidFocused", GroupName = "ValidationStatesStates")]
[StyleTypedProperty(Property = "ValidationDecoratorStyle", StyleTargetType = typeof(C1ValidationDecorator))]
public class C1DateTimePicker : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient

Constructors

Name Description
C1DateTimePicker()

Initializes a new instance of a C1DateTimePicker.

Fields

Name Description
AllowNullProperty

Identifies the AllowNull dependency property.

ButtonBackgroundProperty

Identifies the ButtonBackground dependency property.

ButtonForegroundProperty

Identifies the ButtonForeground dependency property.

CaretBrushProperty

Identifies the CaretBrush dependency property.

CornerRadiusProperty

Identifies the CornerRadius 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.

DateTimeProperty

Identifies the DateTime dependency property.

DateWatermarkProperty

Identifies the DateWatermark dependency property.

DisabledCuesVisibilityProperty

Identifies the DisabledCuesVisibility dependency property.

EditModeProperty

Identifies the EditMode dependency property.

FirstDayOfWeekProperty

Identifies the FirstDayOfWeek dependency property.

FocusBrushProperty

Identifies the FocusBrush dependency property.

FocusCuesVisibilityProperty

Identifies the FocusCuesVisibility dependency property.

IsFocusedProperty

Identifies the IsFocused 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.

MouseOverBrushProperty

Identifies the MouseOverBrush dependency property.

PressedBrushProperty

Identifies the PressedBrush dependency property.

PromptProperty

Identifies the Prompt dependency property.

SelectionBackgroundProperty

Identifies the C1.WPF.DateTimeEditors.C1DateTimePicker.SelectionBackground dependency property.

SelectionForegroundProperty

Identifies the C1.WPF.DateTimeEditors.C1DateTimePicker.SelectionForeground 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.

TimeWatermarkProperty

Identifies the TimeWatermark dependency property.

ValidationDecoratorStyleProperty

Identifies the ValidationDecoratorStyle dependency property.

Properties

Name Description
AllowNull

Gets or sets whether the user can enter null values.

BlackoutDates

Gets the days that are not selectable.

ButtonBackground

Gets or sets the Brush that will be assigned to the Background of the buttons inside the control.

ButtonForeground

Gets or sets the Brush that will be assigned to the Foreground of the buttons inside the control.

CaretBrush

Gets or sets the Brush of the blinking cursor of an input control.

CornerRadius

Gets or sets a value that represents the degree to which the corners of the element are rounded.

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.

DateTime

Gets or sets a DateTime that is selected in the control.

DateWatermark

Gets or sets the content of the date part watermark.

DisabledCuesVisibility

Gets or sets a value indicating whether the disabled visuals of the control are visible.

EditMode

Defines 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.

FocusCuesVisibility

Gets or sets a value indicating whether the focus visuals of the control are visible.

IsDropDownOpen

Gets a value indicating whether the drop-down calendar is open or closed.

IsFocused

Returns true if the control has the focus.

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.

MouseOverBrush

Gets or sets the Brush used to highlight the control when it has the mouse over.

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.

TimeWatermark

Gets or sets the content of the time part watermark.

ValidationDecoratorStyle

Gets or sets the style that is applied to the inner C1.WPF.C1ValidationDecorator.

Methods

Name Description
ChangeVisualStateCommon(bool)

Updates the current visual state of the Common visual state group to match the object's properties.

ChangeVisualStateFocus(bool)

Updates the current visual state of the Focus visual state group to match the object's properties.

FinalizeEditing()

Forces the DateTime property value update.

OnApplyTemplate()

Builds the visual tree for the C1DateTimePicker control when a new template is applied.

OnCreateAutomationPeer()

Gets an AutomationPeer object used for testing the control.

OnDateTimeChanged(NullablePropertyChangedEventArgs<DateTime>)

Raises the DateTime event.

OnPropertyChanged(DependencyPropertyChangedEventArgs)

Invoked whenever the effective value of any dependency property has been updated.

OnSelectionCommitted()

Fires the SelectionCommitted event.

ToString()

Provides a text representation of the DateTime property.

Events

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.

IsMouseOverChanged

Event raised when the IsMouseOver property has changed.

SelectionCommitted

The SelectionCommitted event is fired when the new DateTime property value is committed.