==============================
This example is now obsolete. Refer to the eXpressApp Framework > Task-Based Help > How to: Customize a Built-in Property Editor (WinForms) help topic instead.
==============================
This example demonstrates how to implement a custom PropertyEditor based on the standard one. Here we inherited our editor from the DatePropertyEditor and changed its default behavior to enable Vista style of the editor. This editor will be used for the DateTime property of our business class. We also changed the default display and edit format options to allow entering the time part, not only the date part. To learn more about formatting, please check out MSDN as well as the XtraEditors documentation at:
Formatting.
IMPORTANT NOTE
By default, the CreatedOn property of the DomainObject1 class is formatted using en-US culture settings. So, you might want to modify the EditMask and DisplayFormat to reflect the specifics of your culture.
For instance, you might want to change the hh part in the default mask to HH if your culture formatting settings assume hours to be in a 24-hour format.
See Also:
Built-in Property Editors
Implement Custom Property Editors
How to: Extend Built-in Property Editor's Functionality