MindFusion.Wpf Pack Programmer's Guide
DateTimePicker Members
Constructors Fields Properties Methods Events
 


Represents a drop-down control which enables users to select dates and times.

The following tables list the members exposed by the DateTimePicker type.

 Public Constructors

  Name Description

DateTimePicker

Initializes a new instance of the DateTimePicker class.

 Public Fields

  Name Description

CalendarFontSizeProperty

Identifies the CalendarFontSize dependency property.

CalendarHeaderBackgroundProperty

Identifies the CalendarHeaderBackground dependency property.

CalendarHeightProperty

Identifies the CalendarHeight dependency property.

CalendarHorizontalOffsetProperty

Identifies the CalendarHorizontalOffset dependency property.

CalendarMaxHeightProperty

Identifies the CalendarMaxHeight dependency property.

CalendarMaxWidthProperty

Identifies the CalendarMaxWidth dependency property.

CalendarMinHeightProperty

Identifies the CalendarMinHeight dependency property.

CalendarMinWidthProperty

Identifies the CalendarMinWidth dependency property.

CalendarVerticalOffsetProperty

Identifies the CalendarVerticalOffset dependency property.

CalendarWidthProperty

Identifies the CalendarWidth dependency property.

CenturyViewFormatProperty

Identifies the CenturyViewFormat dependency property.

CustomDateTimeFormatProperty

Identifies the CustomDateTimeFormat dependency property.

DecadeViewFormatProperty

Identifies the DecadeViewFormat dependency property.

DefaultItemTemplateProperty

Identifies the DefaultItemTemplate dependency property.

DisplayDateFormatProperty

Identifies the DisplayDateFormat dependency property.

DisplayDateProperty

Identifies the DisplayDate dependency property.

DropDownButtonTextBrushProperty

Identifies the DropDownButtonTextBrush dependency property.

FocusItemTemplateProperty

Identifies the FocusItemTemplate dependency property.

HeaderTemplateProperty

Identifies the HeaderTemplate dependency property.

HoverItemTemplateProperty

Identifies the HoverItemTemplate dependency property.

IsAnimationEnabledProperty

Identifies the IsAnimationEnabled dependency property.

IsCalendarOpenProperty

Identifies the IsCalendarOpen dependency property.

IsShowingCenturiesProperty

Identifies the IsShowingCenturies dependency property.

IsShowingTimeProperty

Identifies the IsShowingTime dependency property.

MonthViewFormatProperty

Identifies the MonthViewFormat dependency property.

SelectionItemTemplateProperty

Identifies the SelectionItemTemplate dependency property.

ShowTodayProperty

Identifies the ShowToday dependency property.

TextBoxBorderBrushProperty

Identifies the TextBoxBorderBrush dependency property.

TimeViewFormatProperty

Identifies the TimeViewFormat dependency property.

TodayItemTemplateProperty

Identifies the TodayItemTemplate dependency property.

WeekendItemTemplateProperty

Identifies the WeekendItemTemplate dependency property.

YearViewFormatProperty

Identifies the YearViewFormat dependency property.

 Public Properties

  Name Description

CalendarFontSize

Gets or sets the FontSize property of the drop-down calendar. This is a dependency property.

CalendarHeaderBackground

Gets or sets the color theme of the drop-down calendar. This is a dependency property.

CalendarHeight

Gets or sets the Height property of the drop-down calendar. This is a dependency property.

CalendarHorizontalOffset

Gets or sets the distance between the left side of the DateTimePicker control and the left side of the drop-down calendar. This is a dependency property.

CalendarMaxHeight

Gets or sets the MaxHeight property of the drop-down calendar. This is a dependency property.

CalendarMaxWidth

Gets or sets the MaxWidth property of the drop-down calendar. This is a dependency property.

CalendarMinHeight

Gets or sets the MinHeight property of the drop-down calendar. This is a dependency property.

CalendarMinWidth

Gets or sets the MinWidth property of the drop-down calendar. This is a dependency property.

CalendarVerticalOffset

Gets or sets the distance between the bottom side of the DateTimePicker control and the top side of the drop-down calendar. This is a dependency property.

CalendarWidth

Gets or sets the Width property of the drop-down calendar. This is a dependency property.

CenturyViewFormat

Gets or sets a Standard .NET DateTimeFormat string to be applied on the cells in a CenturyView. This is a dependency property.

CustomDateTimeFormat

Gets or sets the formatting of the date displayed in the picker's text box. This is a dependency property.

DecadeViewFormat

Gets or sets a Standard .NET DateTimeFormat string to be applied on the cells in a DecadeView. This is a dependency property.

DefaultItemTemplate

Gets or sets the default template of the cells in the drop-down calendar. This is a dependency property.

DisplayDate

Gets or sets the date to display in the TextBox. This is a dependency property.

DisplayDateFormat

Gets or sets the DisplayDateFormat in the inner TextBox. This is a dependency property.

DropDownButtonTextBrush

Gets or sets the text Brush of the drop-down button. This is a dependency property.

FocusItemTemplate

Gets or sets the template of the cell containing the logical focus in the drop-down calendar control. This is a dependency property.

HeaderTemplate

Gets or sets the template used to display the content of the header in the drop-down calendar control. This is a dependency property.

HoverItemTemplate

Gets or sets the template of the cell pointed with the mouse in the drop-down calendar control. This is a dependency property.

IsAnimationEnabled

Gets or sets a value that enables or disables the popup animation of the drop-down calendar. This is a dependency property.

IsCalendarOpen

Gets a value that indicates whether the drop-down calendar is currently open. This is a dependency property.

IsShowingCenturies

Gets or sets a value that enables or disables the Century view on the drop-down calendar. This is a dependency property.

IsShowingTime

Gets or sets a value that enables or disables the Time view on the drop-down calendar. This is a dependency property.

MonthViewFormat

Gets or sets a Standard .NET DateTimeFormat string to be applied on the cells in a MonthView. This is a dependency property.

SelectionItemTemplate

Gets or sets the template of the selected cells in the drop-down calendar. This is a dependency property.

ShowToday

Gets or sets a value indicating whether the current date is highlighted in the drop-down calendar control. This is a dependency property.

TextBoxBorderBrush

Gets or sets the BorderBrush property of the inner TextBox. This is a dependency property.

TimeViewFormat

Gets or sets a Standard .NET DateTimeFormat string to be applied on the cells in a TimeView. This is a dependency property.

TodayItemTemplate

Gets or sets the template of the cell representing the current date in the drop-down calendar. This is a dependency property.

WeekendItemTemplate

Gets or sets the template of the cells representing weekends in the drop-down calendar control. This is a dependency property.

YearViewFormat

Gets or sets a Standard .NET DateTimeFormat string to be applied on the cells in a YearView. This is a dependency property.

 Public Methods

  Name Description

ClearText

Clears any text in the text box element of the DateTimePicker.

FocusText

Attempts to set focus to the TextBox element in the DateTimePicker.

OnApplyTemplate

FrameworkElement.OnApplyTemplate override.

SelectText

Selects a range of text in the text box element of the DateTimePicker.

SetText

Sets text to the text box element of the DateTimePicker.

 Protected Methods

  Name Description

OnCalendarClosed

Raises the CalendarClosed event.

OnCalendarOpened

Raises the CalendarOpened event.

OnSelectedDateChanged

Raises the DateSelectionChanged event.

 Public Events

  Name Description

CalendarClosed

Raised when the drop-down calendar is closed.

CalendarOpened

Raised when the drop-down calendar is opened.

SelectedDateChanged

Occurs when the drop-down calendar date selection changes.

 See Also

DateTimePicker Class
MindFusion.UI.Wpf Namespace