Version

SuspendCalculations Method

Suspends calculations until ResumeCalculations is called.
Syntax
'Declaration
 
Public Sub SuspendCalculations() 
public void SuspendCalculations()
Remarks

Calling SuspendCalculations will temporarily suspend any automatic calculations performed by the XamCalculationManager until a subsequent call to ResumeCalculations is made.

Note that the suspension refers to automatic calculations only. This means that calculations that would normally be performed on a timer when CalculationFrequency is set to Asynchronous or on a change notification when the value of a control is dirtied when CalculationFrequency is set to Synchronous will not be performed. Explicitly calling the PerformCalculations method or the ICalculationManager's ICalculationManager.EnsureCalculated method will still force a calculation.

Note also that each time SuspendCalculations is called, a counter is incremented. So the same number of ResumeCalculations calls must be made before calculations will resume.

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