Version

AllowDropDown Property

Returns or sets a value that indicates whether the dropdown should be used to select a date.
Syntax
'Declaration
 
Public Property AllowDropDown As Boolean
public bool AllowDropDown {get; set;}
Remarks

By default, the XamDateTimeEditor will show a dropdown as long as it it can enter edit mode and has a date mask - i.e. it will not show if the Mask is set to a time-only input mask. The AllowDropDown property can be used to prevent the dropdown from being available even when the editor is used to edit a date. When set to false, the editor will not attempt to show the dropdown calendar when using the mouse or keyboard.

Example
The following sample demonstrates how to use the AllowDropDown property to suppress the XamMonthCalendar dropdown.

<!-- By default a XamDateTimeEditor with a date mask will use a date 
     dropdown but you can prevent this by setting the AllowDropDown to false 
-->
<igEditors:XamDateTimeEditor AllowDropDown="False" Mask="{}{date}" />
' by default the XamDateTimeEditor will use a XamMonthCalendar
' dropdown if the mask has date sections. this can be prevented
' by setting the AllowDropDown to false
Me.xamDateTimeEditor1.Mask = "{date}"
Me.xamDateTimeEditor1.AllowDropDown = False
// by default the XamDateTimeEditor will use a XamMonthCalendar
// dropdown if the mask has date sections. this can be prevented
// by setting the AllowDropDown to false
this.xamDateTimeEditor1.Mask = "{date}";
this.xamDateTimeEditor1.AllowDropDown = false;
Requirements

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

See Also