Exception when trying to change MapPolygon Fill with VisualStateManager
i'm trying change fill of mappolygon using visual states this:
<visualstatemanager.visualstategroups>
<visualstategroup x:name="ishighlightedstategroup">
<visualstate x:name="ishighlightedstate">
<storyboard>
<coloranimation duration="0" to="yellow" storyboard.targetproperty="(mapshapebase.fill).(solidcolorbrush.color)" storyboard.targetname="_maprect" d:isoptimized="true"/>
</storyboard>
</visualstate>
<visualstate x:name="normalstate"/>
</visualstategroup>
</visualstatemanager.visualstategroups>
and following exception
system.invalidoperationexception unhandled user code
    message=cannot resolve targetproperty (mapshapebase.fill).(solidcolorbrush.color) on specified object.
    stacktrace:
         @ ms.internal.xcpimports.visualstatemanager_gotostate(control reference, string statename, boolean usetransitions, boolean& refreshinheritancecontext)
         @ system.windows.visualstatemanager.gotostate(control control, string statename, boolean usetransitions)
         @ microsoft.expression.interactivity.visualstateutilities.gotostate(frameworkelement element, string statename, boolean usetransitions)
         @ microsoft.expression.interactivity.core.datastatebehavior.evaluate()
http://rbrundritt.wordpress.com
                                                                          Bing Maps                                                     >                                                                 Bing Maps WPF, WP7/8/8.1, Silverlight                                                                           
 
 
Comments
Post a Comment