Version

ShouldKeepResourcesOnUnload Property

Gets or sets a whether the series viewer's components should hold their resource when unloaded.

This is a dependency property.

Note, when setting this to true, it becomes the user's responsibility to set the ItemsSource of the various series and axes to null when the chart is unloaded or memory leaks will occur. This property is useful however, if unloaded charts must be examined or printed, or when expensive to load charts are on multiple tabs on a tab control.
Syntax
'Declaration
 
Public Property ShouldKeepResourcesOnUnload As Boolean
public bool ShouldKeepResourcesOnUnload {get; set;}
Remarks
Note, when setting this to true, it becomes the user's responsibility to set the ItemsSource of the various series and axes to null when the chart is unloaded or memory leaks will occur. This property is useful however, if unloaded charts must be examined or printed, or when expensive to load charts are on multiple tabs on a tab control.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also