How to make Metro in Motion Tilt Effect work on buttons?

I tried using the Metro in Motion Tilt Effect on buttons and hubtiles in my WP7 application and cannot make it work. It works with rectangles and list items, but not buttons and hubtiles. I think this has something to do with applying the effect to the framework element, but I'm not sure. Does anyone know what I need to change in Metro in the motion source to make it work with buttons and Hubtiles?

The Metro in Motion source is here http://www.scottlogic.co.uk/blog/colin/wp-content/uploads/2011/05/MetroInMotion4.zip

I tried adding the button directly to the above example, and it does not work either.

+3
source share
1 answer

Add a toolkit link to your project. Then add the following lines to the tagPhoneApplicationPage

xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit" 
toolkit:TiltEffect.IsTiltEnabled="True"

Now all interactive elements will have a tilt effect.

+2
source

All Articles