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()

 



Bing Maps  >  Bing Maps WPF, WP7/8/8.1, Silverlight



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'