Skip to main content

DiagramCustomGetSerializableItemPropertiesEventArgs.CreateProxyProperty(PropertyDescriptor, Func<IDiagramItem, Object>, IEnumerable<Attribute>) Method

Allows you to create a custom property descriptor.

Namespace: DevExpress.Xpf.Diagram

Assembly: DevExpress.Xpf.Diagram.v24.1.dll

NuGet Package: DevExpress.Wpf.Diagram

Declaration

public PropertyDescriptor CreateProxyProperty(
    PropertyDescriptor property,
    Func<IDiagramItem, object> getObject,
    IEnumerable<Attribute> additionalAttributes = null
)

Parameters

Name Type
property PropertyDescriptor
getObject Func<DevExpress.Diagram.Core.IDiagramItem, Object>

Optional Parameters

Name Type Default Description
additionalAttributes IEnumerable<Attribute> null

A collection of property attributes.

Returns

Type Description
PropertyDescriptor

A property descriptor that can be added to the Properties collection.

Remarks

Use the CreateProxyProperty method to serialize properties that are not defined directly at the diagram item level. This can be useful when your diagram is bound to a data source and you need to edit data item properties.

See Also