Apply Pointer up/down effect to windows phone 8.1 app
问题 I've migrated my windows phone 8 app to windows phone 8.1 runtime. Apparently the tilt effect is included. How would I add this to a custom control? Thanks, 回答1: Hence you are targeting rintime, you may look at Windows.UI.Xaml.Media.Animation classes and espestially: PointerDownThemeAnimation and PointerUpThemeAnimation - there are simple examples there. Mostly what you have to do is put those animations into VisualStates and VisualTransitions, simple example can look like this: <Style x:Key=