Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

DateTimePicker

XceedBoucherS edited this pageMar 11, 2020 ·3 revisions

DateTimePicker

Derives from Xceed.Wpf.Toolkit.DateTimeUpDown

Get the best of both worlds: The user can increment or decrement the DateTime using button spinners, up/down keys, or the mouse wheel, or can modify the DateTime in the dropdown calendar.

Properties

PropertyDescription
AllowSpinGets or sets the ability to perform increment/decrement operations via the keyboard, button spinners, or mouse wheel. (Inherited from UpDownBase)
AutoCloseCalendarGets or sets if the Calendar should close on a selection.
ClipValueToMinMaxGets or sets if the value should be clipped when minimum/maximum is reached. (Inherited from UpDownBase)
CultureInfoGets or sets the current CultureInfo. (Inherited from InputBase)
DefaultValueGets or sets the value to use when theText is null or empty. (Inherited from UpDownBase)
DisplayDefaultValueOnEmptyTextGets or sets if theDefaultValue should be displayed when theText is empty. (Inherited from UpDownBase)
FormatGets or sets a DateTimeFormat value representing the format to be used (FullDateTime, LongDate, etc.). (Inherited from DateTimeUpDown)
FormatStringGets or sets the display format to use whenFormat is set to Custom (e.g., "hh:mm tt") (Inherited from DateTimeUpDown)
IsOpenGets or sets a value indicating whether the DateTimePicker is open.
IsReadOnlyGets or sets if the control is read only. (Inherited from InputBase)
KindGets or sets a value indicating whether a DateTime object represents a local time, a Coordinated Universal Time (UTC), or is not specified as either local time or UTC. NOTE: Setting this property fixes a bug where losing focus on the DateTimePicker was incrementing time in UTC. It also fixes a bug where specifying a UTC Date was changing the date's Kind property to UnSpecified or Local.
MaximumGets or sets the maximum allowed value. (Inherited from UpDownBase)
MinimumGets or sets the minimum allowed value. (Inherited from UpDownBase)
MouseWheelActiveTriggerGets or sets when the MouseWheel is active (Focused, FocusedMouseOver, MouseOver, Disabled). By default FocusedMouseOver. (Inherited from UpDownBase)
ShowButtonSpinnerGets or sets if the ButtonSpinners are visible. (Inherited from UpDownBase)
TextGets or sets the formatted string representation of the value. (Inherited from InputBase)
TextAlignmentGets or sets the alignment of the Text. (Left, Right, Center, Justify). By default Left. (Inherited from InputBase)
TimeFormatGets or sets the time format.
TimeFormatStringGets or sets the time format string used whenTimeFormat is set to Custom.
TimePickerAllowSpinGets or sets if the TimePicker in the DateTimePicker can Spin.
TimePickerShowButtonSpinnerGets or sets if the ButtonSpinners of the TimePicker in the DateTimePicker are shown.
TimePickerVisibilityGets or sets if the TimePicker in the DateTimePicker is visible.
TimeWatermarkGets or sets the time watermark.
TimeWatermarkTemplateGets or sets the time watermark's data template.
UpdateValueOnEnterKeyGets or sets a value indicating whether the synchronization between "Value" and "Text" should be done only on the Enter key press (and lost focus).
ValueGets or sets the numeric value. (Inherited from UpDownBase)
WatermarkGets or sets the object to use as a watermark ifValue is null. (Inherited from InputBase)
WatermarkTemplateGets or sets the DataTemplate to use for theWatermark. (Inherited from InputBase)

Events

EventDescription
InputValidationErrorRaised when theText cannot be converted to a validValue. (Inherited from UpDownBase)
ValueChangedRaised when theValue changes. (Inherited from UpDownBase)

Methods

MethodDescription
SelectAllSelect all the Text from the TextBox in the DateTimePicker. (Inherited from DateTimeUpDownBase)

Support this project, check out thePlus Edition.

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp