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
C#
![]() |
---|
public bool LightweightPresenters { get; set; } |
Visual Basic
![]() |
---|
Public Property LightweightPresenters As Boolean |
true to create smaller visual tree, or false otherwise. The default value is false.
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.
WpfDiagram Programmer's Guide | © 2025 MindFusion |