Back to Devexpress

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

wpf-devexpress-dot-xpf-dot-diagram-dot-diagramcustomgetserializableitempropertieseventargs-dot-createproxyproperty-x28-propertydescriptor-func-idiagramitem-object-ienumerable-attribute-x29.md

latest2.9 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Diagram

Declaration

csharp
public PropertyDescriptor CreateProxyProperty(
    PropertyDescriptor property,
    Func<IDiagramItem, object> getObject,
    IEnumerable<Attribute> additionalAttributes = null
)
vb
Public Function CreateProxyProperty(
    property As PropertyDescriptor,
    getObject As Func(Of IDiagramItem, Object),
    additionalAttributes As IEnumerable(Of Attribute) = Nothing
) As PropertyDescriptor

Parameters

NameType
propertyPropertyDescriptor
getObjectFunc<DevExpress.Diagram.Core.IDiagramItem, Object>

Optional Parameters

NameTypeDefaultDescription
additionalAttributesIEnumerable<Attribute>null

A collection of property attributes.

|

Returns

TypeDescription
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

DiagramCustomGetSerializableItemPropertiesEventArgs Class

DiagramCustomGetSerializableItemPropertiesEventArgs Members

DevExpress.Xpf.Diagram Namespace