Code I Use

  • rss
  • archive
  • Adding Tilting in Windows Phone

    Download and import the file TiltEffect.cs into your project.

    Add the namespace:

    xmlns:tilt=”clr-namespace:ControlTiltEffect”

    Add the following to your control:

    tilt:TiltEffect.IsTiltEnabled=”True”

    Example:

    <Button Content=”Look, I tilt!” tilt:TiltEffect.IsTiltEnabled=”True” />

    It’s a subtle effect but very cool.

    Press in the upper right hand corner

    Press in the lower left hand corner

    • January 4, 2013 (3:19 pm)
© 2012–2013 Code I Use