Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ScrollBarBase.CancelUpdate() Method

In This Article

Unlocks the control after a ScrollBarBase.BeginUpdate method call without causing immediate repainting.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v24.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

#Declaration

public void CancelUpdate()

#Remarks

Once the ScrollBarBase.BeginUpdate method is called, modifying control settings does not lead to the recalculation of view information and control repainting. This is used to perform several modifications without repainting the control after each one individually. After all desired operations have been performed, call the ScrollBarBase.EndUpdate or CancelUpdate method. The first must be called if the control needs to be repainted after applying changes. If the control’s appearance is not modified as a result of applying changes, it is better to call the CancelUpdate method. This method unlocks the control without recalculating view information, and thus without repainting it.

See Also