ArcGIS Explorer Component Help |
Gallery..::.OnUpdate Method |
Gallery Class See Also |
Assembly: ESRI.ArcGISExplorer.Application (in ESRI.ArcGISExplorer.Application.dll) Version: 2.0.0.1500 (2.0.0.1500)
Syntax
C# |
---|
public virtual void OnUpdate() |
Visual Basic (Declaration) |
---|
Public Overridable Sub OnUpdate |
Remarks
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.