The base class for Property Editors that use DevExtreme Widgets and their XAF Mobile Wrappers.
public abstract class MobilePropertyEditor : PropertyEditor, IComplexViewItem, ISupportViewEditMode, IClientModelAware
Public MustInherit Class MobilePropertyEditor Inherits PropertyEditor Implements IComplexViewItem, ISupportViewEditMode, IClientModelAware
Inherit this class to implement a Property Editor using DevExtreme widgets.
In Mobile XAF applications, Detail Views can be displayed in two modes - view (read only) and edit (editable). The MobilePropertyEditor.ViewEditMode property specifies the current display mode of the Property Editor's widget.
Typical implementation of the MobilePropertyEditor class' descendants comprises overriding the virtual methods listed below.
Override the CreateEditModeControlCore method to instantiate and setup a control to be used in the edit mode.
Override the CreateViewModeControlCore method to instantiate and setup a control to be used in the view mode. If you don't override it, a control with the Label wrapper will be used by default.
If you have overridden the CreateViewModeControlCore method, additionally override the ReadViewModeValueCore method.
A custom Property Editor that derives from the MobilePropertyEditor should not throw exceptions. Exceptions thrown by such a Property Editor interrupt request processing. As a result, the application crashes.