看了网上的好多都是有线程控制闪烁感觉不那么自然。threading 可以。之类的另开线程休眠一段时间。触发事件
用storyboard通过要素fill的属性的透明度控制也可以实现闪烁效果。
动态写的代码如下
Storyboard tstory = new Storyboard();
tstory.Stop();
DoubleAnimation dDoubleAni = new DoubleAnimation();
dDoubleAni.Duration = new Duration(new TimeSpan(0,0,1));
dDoubleAni.From = 1;
dDoubleAni.To = 0;
dDoubleAni.RepeatBehavior = new RepeatBehavior(5);
tstory.Children.Add(dDoubleAni);
Storyboard.SetTargetProperty(tstory, new PropertyPath("Opacity"));
Storyboard.SetTarget(tstory, ((Brush)((startPoint as ESRI.ArcGIS.Client.Graphic).Symbol as SimpleFillSymbol).Fill));
tstory.Begin();