Occurs when a diagram item is realized and its visual representation is created.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
SyntaxC#
Copy Code
|
|---|
public event EventHandler<ItemPresenterEventArgs> ItemRealized |
Visual Basic
Copy Code
|
|---|
Public Event ItemRealized As EventHandler(Of ItemPresenterEventArgs) |
Event DataMember name | Description |
|---|---|
Gets the diagram item that is being realized or virtualized. | |
Gets the UI element that represents a diagram item. | |
Gets the root visual of the item's graphics representation. It is the result of DiagramItem.CreateRenderer, e.g. an instantiation of a data template. |
RemarksYou could handle ItemRealized to set FrameworkElement properties of the item's visual element that are not exposed through DiagramItem.
If necessary, you can also attach lower-level event handlers to the element when the diagram’s built-in events do not cover your scenario. For example, you might handle touch- or stylus-specific events if standard diagram events (such as NodeClicked, NodeHovered, etc.) do not provide sufficient information for your needs.
If you attach any event handlers here, you must detach them in the ItemVirtualized event to avoid memory leaks.
See Also