[]
Allows selecting and editing date values.
[StyleTypedProperty(Property = "CalendarStyle", StyleTargetType = typeof(Calendar))]
[StyleTypedProperty(Property = "DropDownButtonStyle", StyleTargetType = typeof(C1ToggleButton))]
[StyleTypedProperty(Property = "DropDownIconStyle", StyleTargetType = typeof(ContentControl))]
[StyleTypedProperty(Property = "PopupStyle", StyleTargetType = typeof(C1PopupBorder))]
[StyleTypedProperty(Property = "ValidationDecoratorStyle", StyleTargetType = typeof(C1ValidationDecorator))]
[TemplatePart(Name = "TextBox", Type = typeof(C1MaskedTextBox))]
[TemplatePart(Name = "Button", Type = typeof(C1ToggleButton))]
[TemplatePart(Name = "Popup", Type = typeof(Popup))]
[TemplatePart(Name = "Calendar", Type = typeof(Calendar))]
[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 C1DatePicker : C1View
| Name | Description |
|---|---|
| C1DatePicker() | Initializes a new instance of the C1DatePicker class. |
| Name | Description |
|---|---|
| AllowNullProperty | Identifies the AllowNull dependency property. |
| CalendarStyleProperty | Identifies the CalendarStyle dependency property. |
| CaretBrushProperty | Identifies the CaretBrush dependency property. |
| CustomFormatProperty | Identifies the CustomFormat dependency property. |
| DisplayDateEndProperty | Identifies the DisplayDateEnd dependency property. |
| DisplayDateProperty | Identifies the DisplayDate dependency property. |
| DisplayDateStartProperty | Identifies the DisplayDateStart dependency property. |
| DisplayModeProperty | Identifies the DisplayMode dependency property. |
| DropDownButtonStyleProperty | Identifies the DropDownButtonStyle dependency property. |
| DropDownIconStyleProperty | Identifies the DropDownIconStyle dependency property. |
| DropDownIconTemplateProperty | Identifies the DropDownIconTemplate dependency property. |
| FirstDayOfWeekProperty | Identifies the FirstDayOfWeek dependency property. |
| FocusBrushProperty | Identifies the FocusBrush dependency property. |
| FocusCuesVisibilityProperty | Identifies the FocusCuesVisibility dependency property. |
| IsDropDownOpenProperty | Identifies the IsDropDownOpen dependency property. |
| IsReadOnlyProperty | Identifies the IsReadOnly dependency property. |
| IsTodayHighlightedProperty | Identifies the IsTodayHighlighted dependency property. |
| MaskProperty | Identifies the Mask dependency property. |
| MouseOverBorderBrushProperty | Identifies the MouseOverBorderBrush dependency property. |
| MouseOverBrushProperty | Identifies the MouseOverBrush dependency property. |
| PlaceholderProperty | Identifies the Placeholder dependency property. |
| PopupStyleProperty | Identifies the PopupStyle dependency property. |
| PressedBrushProperty | Identifies the PressedBrush dependency property. |
| PromptProperty | Identifies the Prompt dependency property. |
| SelectedDateChangedEvent | Identifies the SelectedDateChanged routed event. |
| SelectedDateFormatProperty | Identifies the SelectedDateFormat dependency property. |
| SelectedDateProperty | Identifies the SelectedDate dependency property. |
| TextProperty | Identifies the Text dependency property. |
| ValidationDecoratorStyleProperty | Identifies the ValidationDecoratorStyle dependency property. |
| Name | Description |
|---|---|
| AllowNull | Gets or sets whether the user can enter null values. |
| BlackoutDates | Gets a collection of dates that are marked as not selectable. |
| CalendarStyle | Gets or sets the style that is used when rendering the calendar. |
| CaretBrush | Gets or sets the Brush of the blinking cursor of an input control. |
| CustomFormat | Gets or sets the custom date/time format string. |
| DisplayDate | Gets or sets the date to display in drop-down calendar. |
| DisplayDateEnd | Gets or sets the last date to be displayed. |
| DisplayDateStart | Gets or sets the first date to be displayed. |
| DisplayMode | Gets or sets a value that indicates whether the calendar displays a month, year, or decade. |
| DropDownButtonStyle | Gets or sets the style of the button that opens the drop-down. |
| DropDownIconStyle | Gets or sets the style of the icon shown in the drop-down button. |
| DropDownIconTemplate | Gets or sets the template of the icon used in the drop-down button. |
| 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 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 C1DatePicker is read-only. |
| IsTodayHighlighted | Gets or sets the boolean value, specifying whether the current date is highlighted in the drop-down calendar. |
| Mask | Gets or sets the input mask. |
| 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. |
| Placeholder | Gets or sets the placeholder text. |
| 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. |
| SelectedDate | Gets or sets the currently selected date. |
| SelectedDateFormat | Gets or sets the format that is used to display the selected date. |
| Text | Gets or sets the text that is displayed by the C1DatePicker control. |
| 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 SelectedDate property value update. |
| OnApplyTemplate() | |
| OnDateValidationError(DatePickerDateValidationErrorEventArgs) | Raises the DateValidationError event. |
| OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs) | |
| OnLostFocus(RoutedEventArgs) | Finalizes editing and closes dropdown part if focus is out of the C1DatePicker control. |
| OnMouseWheel(MouseWheelEventArgs) | Changes the SelectedDate property according to the mouse wheel delta. |
| OnSelectedDateChanged(SelectionChangedEventArgs) | Raises the SelectedDateChanged event. |
| OnSelectionCommitted() | Fires the SelectionCommitted event. |
| ToString() | Provides a text representation of the selected date. |
| Name | Description |
|---|---|
| CalendarClosed | Occurs when the drop-down Calendar is closed. |
| CalendarOpened | Occurs when the drop-down Calendar is opened. |
| DateValidationError | Occurs when text entered into the C1DatePicker cannot be parsed or the Date is not valid to be selected. |
| SelectedDateChanged | Occurs when the SelectedDate property is changed. |
| SelectionCommitted | The SelectionCommitted event is fired when the selected date is committed. |