Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3673118
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:41:35+00:00 2026-05-19T02:41:35+00:00

I use the Tilt Effect provided by Microsoft I want a generic way to

  • 0

I use the Tilt Effect provided by Microsoft

I want a generic way to change the background when an element is touched. The tilt effect uses FrameworkElement since all Control inherit from it. But if I want to change the background of any element, I need to access the Background property…

Do you think there is a way for me to modify the sample so I can add this behavior ?

edit : if it’s not possible by modifying the Tilt Effect code how could I write something generic enough so I don’t have to change the Visual State of every element

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T02:41:36+00:00Added an answer on May 19, 2026 at 2:41 am

    If you use Jeff Wilcox’s TiltContentControl as your base class, you can use Themes\generic.xaml to define the default style and the VisualStateManager to define a Pressed and a Normal state (the DepressAndTilt method would be where you switch to the Pressed state and the TiltUpCompleted method would be where you revert to the Normal state). Your default style would wrap the ContentPresenter with a Border, whose Background you update in the Pressed state.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use the TiltEffect from the Silverlight toolkit within a LongListSelector
I use zeros to initialize my matrix like this: height = 352 width =
I would like to use the accelerometer to move my player sprite. If the
I want to make a game where you ride a bicycle down a hill
In my iPhone game (I am using cocos2d, shouldn't make a massive difference) I
As part of a current project I've been asked to display a candle onscreen.
For a project at school I need to have to absolute position of the
All: I'm seeking input/guidance/and design ideas. My goal is to find a lean but
I'm writing a desktop (J2SE) application that will take photographs with a digital camera.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.