DiagramCustomGetSerializableItemPropertiesEventArgs.CreateProxyProperty(PropertyDescriptor, Func<IDiagramItem, Object>, IEnumerable<Attribute>) Method
In This Article
Allows you to create a custom property descriptor.
Namespace: DevExpress.Xpf.Diagram
Assembly: DevExpress.Xpf.Diagram.v24.2.dll
NuGet Package: DevExpress.Wpf.Diagram
#Declaration
public PropertyDescriptor CreateProxyProperty(
PropertyDescriptor property,
Func<IDiagramItem, object> getObject,
IEnumerable<Attribute> additionalAttributes = null
)
#Parameters
Name | Type |
---|---|
property | Property |
get |
Func<DevExpress. |
#Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
additional |
IEnumerable<Attribute> | null | A collection of property attributes. |
#Returns
Type | Description |
---|---|
Property |
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