Search code examples
windows-phone

Windows Phone Moving Button


I want to create a button on windows phone which have that moving like the tile or the application button on windows phone,when you press from the left the left side go down and the right side go up.


Solution

  • you have to enable tilt property to acheive your purpose.

    see below code,

    add in your page.xaml file in declaration section add below namespace,

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

    then set following attribute on button

    toolkit:TiltEffect.IsTiltEnabled="True"