Called periodically, providing an opportunity to perform some work.

Namespace:  ESRI.ArcGISExplorer.Application

Assembly:  ESRI.ArcGISExplorer.Application (in ESRI.ArcGISExplorer.Application.dll) Version: (


public virtual void OnUpdate()
Visual Basic (Declaration)
Public Overridable Sub OnUpdate


The OnUpdate method is called periodically by the framework once the Gallery has been loaded, for example when the Tab where the Gallery is displayed is shown. This provides an opportunity to run some code periodically within your customization.

One typical use of OnUpdate is to determine and set the Enabled property of the Gallery if using application conditions does not provide sufficient control; note that it is more efficient to make use of application conditions if possible.

Another typical use of OnUpdate for a Gallery is to update the Items in the Gallery based on the state of the application; refer to the Items property for more information.

Note that as OnUpdate may be called frequently you should avoid lengthy operations in this method, as this would reduce the responsiveness of the application user interface.

See Also