In windows store applications, a RepositionThemeTransition can be added to UI elements in order to make them swoop instead of teleporting when their positions change. There are also other types of transitions.
<Rectangle>
<Rectangle.Transitions>
<TransitionCollection>
<RepositionThemeTransition/>
</TransitionCollection>
</Rectangle>
</Rectangle>
WPF doesn’t appear to support this functionality. Is there a way to do something equivalent?
I ended up just emulating the functionality myself, by applying animations in LayoutUpdated events that initially counteract changes in position. Here’s the code:
Note that “May” is a custom option type, so that part won’t compile. You can use the type Point? instead, with explicit null checks instead of queries.