Search This Blog

Monday, April 15, 2013

Improving usability with regard to formatting property values

As you probably know, formatting property values in XAF is typically done in a platform and control-agnostic manner in the Application Model via the Model Editor (the same is of course possible in code). Now it is also possible to define formatting for a value type in a single place for all business class properties, thus saving your time.
For more details, I would like to quote myself from

"Starting with version 13.1, you will have a single place for setting the DisplayFormat and EditMask properties for a type, because the IModelRegisteredPropertyEditor interface has been extended with respective properties. This improvement is mainly supposed to reduce the duplicate work when providing default formatting for common types like System.DateTime, Decimal, Integer, Double, etc.
As expected, these defaults will be automatically propagated to class members, ListView columns and DetailView editors, with the capability to provide custom values at these levels.
Take special note that now PropertyEditors use the default formatting from the application model, or from the DevExpress.ExpressApp.Editors.FormattingProvider singleton if the model is not available. If you build a custom PropertyEditor that does not require any default formatting, you can empty the aforementioned properties in the application model for your business class property or apply ModelDefaultAttribute to it in code."


Hopefully, you will like this small usability improvement. Please let me know your thoughts in comments.

1 comment: