Following tip is used to populate DateEdit control in a similar way in both Vista, XP machine.
Without setting any property for VistaDisplayMode, if one uses DevExpress.xtraEditors.DateEdit control in an windows application and runs it in a Vista machine then the DataEdit control dropdown opens with a clock based calender which s not shown in that way in XP machine.
To make the DateEdit control look only with Calender control as it is populated in XP,we need to set some properties.
Open Properties window for the DateEdit control in VS environment and click to open the Properties option in the list,
set the VistaDisplayMode, VistaEditTime to False.
Then open LookAndFeel in VistaTimeProperties option in the property list and
Set UseDefaultLookAndFeel, UseWindowsXpTheme properties to True.
|
Note:
If the VistaDisplayMode property is set to DefaultBoolean.Default, the DateEdit control’s look and feel and behavior will be dependant on the current OS. If the application is running under Windows Vista, the editor will function like the standard Date Editor in Windows Vista. Otherwise, the editor will have the default look and feel and behavior.
If the VistaDisplayMode property is set to DefaultBoolean.True or DefaultBoolean.False, the editor will have the corresponding look and feel regardless of the current OS.
|