I'm trying to get access to the Map Progress event so that I can turn off a custom splash screen after the map tiles have been downloaded. This is similar to this previous forum posting:http://forums.arcgis.com/threads/17132-Event-for-when-map-service-image-is-returned?highlight=map.progressHowever, I can't seem to get the Progress event to fire when I need it. My code looks like this:In MainPage.xaml.cs constructor (where Map is the name of the map object):Map.Progress += new EventHandler<ESRI.ArcGIS.Client.ProgressEventArgs>(Map_Progress);
In the procedure Map_Progress: void Map_Progress(object sender, ESRI.ArcGIS.Client.ProgressEventArgs e)
{
if (e.Progress == 100)
{
HtmlPage.Window.Invoke("hideSplashscreen", null);
}
}
I can put the Invoke command in a handler for the Map.Loaded event, and that works, but it removes the splash screen before the map has finished loading the tiles. Strangely, after the Map.Loaded event fires the Invoke command, the Map.Progress event will then fire. Of course by then it is too late.I'm really confused about this and would appreciate any help!Thanks