Back to Devexpress

DateEdit.DateTime Property

wpf-devexpress-dot-xpf-dot-editors-dot-dateedit.md

latest2.5 KB
Original Source

DateEdit.DateTime Property

Gets or sets the editor’s date/time value. This is a dependency property.

Namespace : DevExpress.Xpf.Editors

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public DateTime DateTime { get; set; }
vb
Public Property DateTime As Date

Property Value

TypeDescription
DateTime

A DateTime object that specifies the editor’s value.

|

Remarks

The editor’s minimum and maximum values can be specified using the DateEdit.MinValue and DateEdit.MaxValue properties, respectively.

Changing the DateTime property’s value fires the BaseEdit.EditValueChanged event.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DateTime property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-pivot-grid-add-custom-field-values-rows-columns-not-present-in-datasource/CS/WpfApplication1/MainWindow.xaml.cs#L33

csharp
{
    dateEdit1.DateTime = DateTime.Now;
    dateEdit2.DateTime = DateTime.Now.AddMonths(12);

See Also

EditValueChanged

MaxValue

MinValue

DateEdit Class

DateEdit Members

DevExpress.Xpf.Editors Namespace