Search
DiagramItem.CreateRenderer Method
See Also
 





Returns a FrameworkElement used to render this item in the DiagramView.

Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

protected virtual FrameworkElement CreateRenderer (
    bool activeView,
    bool lightweight
)

Visual Basic  Copy Code

Protected Overridable Function CreateRenderer( _
    activeView As Boolean, _
    lightweight As Boolean _
) As FrameworkElement

 Parameters

activeView

Indicates whether the target view is currently active.

lightweight

True to create light-weight renderer.

 Return Value

A FrameworkElement representing this item on screen.

 Remarks

Do not return a cached/shared FrameworkElement instance from this method, as the item could be displayed by multiple controls (DiagramView, Overview, LayerListView) and a FrameworkElement can have only a single parent element.

 See Also