Search
DiagramView.LightweightPresenters Property
See Also
 





Gets or sets whether diagram item presenters in the WPF visual tree should create less visual children, at the cost of more frequent repaints.

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

 Syntax

C#  Copy Code

public bool LightweightPresenters { get; set; }

Visual Basic  Copy Code

Public Property LightweightPresenters As Boolean

 Property Value

true to create smaller visual tree, or false otherwise. The default value is false.

 Remarks

You might want to enable LightweightPresenters if you notice lag during view scroll operations. When enabled, an item presenter visual draws both item's content and its associated adorners (e.g. adjustment handles or anchor points). That would lead to more frequent repaints, but requires less memory and reduces presenter creation time. Lightweight presenters are supported only for items that draw their contents from Draw method (either built-in or derived types). They are not supported by ControlNode, TemplatedNode, or any item whose Template property is set.

 See Also