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

IButtonProperties.BeginUpdate() Method

In This Article

Locks the IButton by preventing visual updates of the object and its elements until the EndUpdate method is called.

Namespace: DevExpress.XtraEditors.ButtonPanel

Assembly: DevExpress.Utils.v24.2.dll

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

#Declaration

void BeginUpdate()

#Remarks

The BeginUpdate and IButtonProperties.EndUpdate methods allow you to avoid flickering while performing batch modifications to the IButton‘s settings. Once the BeginUpdate method has been called, modifying settings of the IButton and its elements does not cause an immediate visual update. So, multiple modifications can be made to the object and its elements without a major impact on performance or screen flickering. After all the desired operations have been finished, call the IButtonProperties.EndUpdate method. To unlock an IButton without immediate visual update use the IButtonProperties.CancelUpdate method.

See Also