LEADTOOLS WPF and Silverlight (Leadtools.Windows.Controls assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
EndUpdate Method
See Also 
Leadtools.Windows.Controls Namespace > ImageBox Class : EndUpdate Method



Refreshes the control to include all the changes made after using the BeginUpdate method. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Overridable Sub EndUpdate() 
Visual Basic (Usage)Copy Code
Dim instance As ImageBox
 
instance.EndUpdate()
C# 
public virtual void EndUpdate()
C++/CLI 
public:
virtual void EndUpdate(); 

Example

For C#/VB examples, refer to Flip.

Remarks

The BeginUpdate method will cause the control not to call the System.Windows.UIElement.InvalidateMeasure method when any changes to the control properties or the image is applied. When the user calls the EndUpdate method, the viewer will call System.Windows.UIElement.InvalidateMeasure to show all the changes made. This is useful for better visual results and for speed efficiency.

Calls to BeginUpdate and EndUpdate are accumulative, you can call BeginUpdate as many times as you want and you must call the EndUpdate equivalant times to cause the update to happen.

Requirements

Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also