тема закрыта !
FeatureSet fts = new FeatureSet();
DispatcherTimer timer = new DispatcherTimer();
int index = 0;
private void QueryTask_ExecuteCompleted(object sender, QueryEventArgs args)
{
if (featureSet != null && featureSet.Features.Count != 0)
{
graphicsLayer.Graphics.Clear();
fts = featureSet;
timer.Tick += new EventHandler(timer_Tick);
timer.Interval = TimeSpan.FromSeconds(1);
timer.Start();
return;
}
}
void timer_Tick(object sender, EventArgs e)
{
if (index < fts.Features.Count)
{
Graphic graphic = fts.Features[index];
graphicsLayer.Graphics.Add(graphic);
index++;
}
else
{
timer.Stop();
index = 0;
}
}
P.s. Модератор, создай для разработчиков SL,WPF,Flex,JavaScript ветви