XafariListPropertyEditor Class
This editor intended to fix an issue (1042) in the DevExpress.ExpressApp.Editors.ListPropertyEditor.
Namespace:
Xafari.Editors
Assembly: Xafari.Editors (in Xafari.Editors.dll)
| Name | Description | |
|---|---|---|
|
XafariListPropertyEditor(Type, IModelMemberViewItem) |
| Name | Description | |
|---|---|---|
|
GetListValueByTerm<TDetails>(this object, string) | Obsolete. (Defined by TypeExtensions). |
|
GetValueByTerm<TValue>(this object, string) | Obsolete. (Defined by TypeExtensions). |
|
Session(this object, bool) | Obsolete. Returns Session for specified object. (Defined by SessionExtensions). |
|
SetValueByTerm<TValue>(this object, string, TValue) | Obsolete. (Defined by TypeExtensions). |
Detais:
The Xafari.BC.DynamicProperties.DynamicPropertiesObject clacc dynamically (in runtime) generated types is used.
Then it will show a DetailView for these types. To do this duty DPO creates DetailView in a temporary model using
the method DevExpress.ExpressApp.Utils.TempDetailViewHelper.CreateTempDetailViewModel(IModelApplication, Type) as necessary.
Everything is fine as long as we do not use properties of collection types in generated classes like this:
class PeacefulParametersObject
{
public DevExpress.Persistent.BaseImpl.Note Note { get; set; }
}
But when collections are used, the ListPropertyEditor unable to find ListView for such properties. Here is an example of troubled class:
class TroubledParametersObject
{
public IList<DevExpress.Persistent.BaseImpl.Note> Notes { get; set; }
}
If we try to display the DetailView which is built for this class we will get an error 1042:
"Exception occurs while assigning the 'DetailView, ID:TroubledParametersObject_DetailView' view to WinWindow:
An error with number 1042 has occurred.
Error message: The 'TroubledParametersObject_Notes_ListView' node was not found"
The issue is in the proteced method DevExpress.ExpressApp.Editors.ListPropertyEditor.CreateListView().
ListPropertyEditor uses the Application Model instead of its own one ("Model" property) to find appropriate ListView.
To fix this issue derived class XafariListPropertyEditor from ListPropertyEditor is created.
Xafari.Editors.XafariListPropertyEditor
Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.