'Declaration Public Class XamDateTimeEditor Inherits XamMaskedEditor Implements ISupportsSelectableText
public class XamDateTimeEditor : XamMaskedEditor, ISupportsSelectableText
XamDateTimeEditor can be used to edit a date and/or time. Based on the value of the XamMaskedEditor.Mask property, it can edit date, time or both date and time. The following are some example masks:
By default the current culture settings will be used to determine the format of date and time. However you can override that by setting the FormatProvider and Format properties. If FormatProvider is set then the mask and the formatting will be based on the settings provided by FormatProvider. Otherwise the formatting will be based on the current culture. Note: the Format property only controls what gets displayed when the control is not in edit mode. See Format for more information.
Imports Infragistics.Windows.Editors Private Function CreateDateEditor() As XamDateTimeEditor Dim editor As New XamDateTimeEditor editor.AutoFillDate = AutoFillDate.MonthAndYear editor.DropDownButtonDisplayMode = DropDownButtonDisplayMode.Always editor.Mask = "{date}" Return editor End Function
using Infragistics.Windows.Editors; private XamDateTimeEditor CreateDateEditor() { XamDateTimeEditor editor = new XamDateTimeEditor(); editor.AutoFillDate = AutoFillDate.MonthAndYear; editor.DropDownButtonDisplayMode = DropDownButtonDisplayMode.Always; editor.Mask = "{date}"; return editor; }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2