Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Attached properties can be animated, but you must enclose their names in parenthesis. See an example here:</p> <p><a href="http://www.charlespetzold.com/blog/2007/09/080231.html" rel="nofollow">http://www.charlespetzold.com/blog/2007/09/080231.html</a></p> <p>However, I believe this only works for setting the whole value (Location) and potentially not sub properties (Latitude and Longitude).</p> <p>I'm wondering if you can provide more information about what you're trying to do. Is this a temporary animation? i.e. are you wanting the pin to animate in on entrance or departure? If so you can just do an animation on the RenderTransform X and Y instead. You won't actually be changing the location of the pin but you can use the RenderTransform to temporarily change where it's being drawn.</p> <p>Even better, you might be able to get away with the free animations now built into the framework. You don't even need a storyboard to use them, you just set them right on the element like this:</p> <pre><code>&lt;Button Content="Transitioning Button"&gt; &lt;Button.Transitions&gt; &lt;TransitionCollection&gt; &lt;EntranceThemeTransition/&gt; &lt;/TransitionCollection&gt; &lt;/Button.Transitions&gt; &lt;/Button&gt; </code></pre> <p>For more examples of the animation library and even video previews for many of the animations, see:</p> <p><a href="http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh452703.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh452703.aspx</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload