Back to Devexpress

DiagramItemBoundsChangedEventArgs.Item Property

wpf-devexpress-dot-xpf-dot-diagram-dot-diagramitemboundschangedeventargs.md

latest2.2 KB
Original Source

DiagramItemBoundsChangedEventArgs.Item Property

Returns the item whose bounds are changed.

Namespace : DevExpress.Xpf.Diagram

Assembly : DevExpress.Xpf.Diagram.v25.2.dll

NuGet Package : DevExpress.Wpf.Diagram

Declaration

csharp
public DiagramItem Item { get; }
vb
Public ReadOnly Property Item As DiagramItem

Property Value

TypeDescription
DiagramItem

A DiagramItem object.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Item property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-generate-diagram-with-grouped-items/VB/DiagramNestedItemsExample/StackLayoutDiagramContainerBehavior.vb#L83

vb
If Equals(e.NewParent, AssociatedObject) AndAlso (Not Equals(e.OldParent, AssociatedObject)) Then
    AddChild(e.Item, e.NewIndex = 0)
ElseIf Equals(e.OldParent, AssociatedObject) AndAlso (Not Equals(e.NewParent, AssociatedObject)) Then

See Also

DiagramItemBoundsChangedEventArgs Class

DiagramItemBoundsChangedEventArgs Members

DevExpress.Xpf.Diagram Namespace