Select to view content in your preferred language

Marker Symbol with blinking state

2396
1
07-13-2011 07:35 AM
EduardLucic
Emerging Contributor
Hi,

I have seen how you can change the visual state of a marker symbol when the Selected value changes. However, I need to do something a bit different. Besides the selected state, I would need an IsBlinking state which would make the marker blink if the value is set to True.

I don't know if I could do this with the VisualStateManager since the new property is not part of the Graphic object.

Any hints on how this could be achieved?
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
You can add a GraphicsLayer with graphic that has blinking symbol and with the same geometry. For example the StrobeSymbol here: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#CustomSymbols can be modified to blink at its normal state, simply add/remove this graphic on top of your graphic to show that it is blinking.                                                
<!--Static symbol on top-->
<Ellipse Height="10" Width="10" Canvas.Left="-5" Canvas.Top="-5" 
        Fill="{x:Null}" x:Name="ellipse1"/>


You can also use AttributeValueChanged to detect the change in value.
0 Kudos