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)

  • c#
  • VB

public class XafariListPropertyEditor : IComplexViewItem

Public Class XafariListPropertyEditor
  Implements IComplexViewItem
End Class

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1