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

  • SEARCH
  • Home
  • 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 1111549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:33:54+00:00 2026-05-17T02:33:54+00:00

I am developing a WPF kiosk like client that will be deployed on an

  • 0

I am developing a WPF kiosk like client that will be deployed on an HP TouchSmart Windows 7 machine with multi-touch enabled. My problem is that with Windows 7 multi-touch, the application does not recognize a finger ‘tap’ as a button press event, and therefore the button press Trigger to change color is never fired.

The Windows 7 animation for the touch usually displays, and the button click event fires fine. It is only the XAML define style for the ‘IsPressed’ event that does not function as intended on a finger tap. It does eventually work if enough pressure is applied with a finger and/or you roll or press like you would do for a fingerprint. Is there a workaround for to make a ‘tap’ fire a press/click event?

<Trigger Property="AreAnyTouchesOver" Value="true">
    <Trigger.ExitActions>
        <BeginStoryboard Storyboard="{StaticResource PressedOff}" />
    </Trigger.ExitActions>
    <Trigger.EnterActions>
        <BeginStoryboard Storyboard="{StaticResource PressedOn}" />
    </Trigger.EnterActions>
</Trigger>

<Trigger Property="AreAnyTouchesDirectlyOver" Value="true">
    <Trigger.ExitActions>
        <BeginStoryboard Storyboard="{StaticResource PressedOff}" />
    </Trigger.ExitActions>
    <Trigger.EnterActions>
        <BeginStoryboard Storyboard="{StaticResource PressedOn}" />
    </Trigger.EnterActions>
</Trigger>
  • 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-17T02:33:55+00:00Added an answer on May 17, 2026 at 2:33 am

    I am not clear on what you want t do.

    Some explanation on your issue:

    In touch IsPressed is only triggered when your contact is held down over the element and the movement threshold is passed to create a “press” (That is why you see it if you press the finger down and slide it slightly)

    As soon as the contact comes up IsPressed = false.

    When you “tap” a button you are in essence doing a mouse click. This is why events fires as expected.

    So what exactly are you trying to do? You want to fire an storyboard animation when a button is “held down” (“IsPressed”) or when a button is clicked (tapped).

    These are two different situations, also note that often times desktop metaphors do not translate well to the touch environment. You may want to rethink how you are giving visual feedback to the user.

    I think the easiest answer for what you want to is Trigger on “TouchDown” if I understand your questions correctly.

    UPDATE:

    This should work for a TouchDown trigger

    <Button Content="Touch Down Example" Height="20" Width="20">
            <Button.Triggers>
                <EventTrigger RoutedEvent="Button.TouchDown">
                    <BeginStoryboard>
                        ....
                    </BeginStoryboard>
                </EventTrigger>
            </Button.Triggers>
        </Button>
    

    NOTE: I don’t have a touch screen in front of me so there could be errors but it looks correct.

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

Sidebar

Related Questions

I am developing a WPF application that must run using Windows Classic theme. The
I'm developing a touch screen kiosk application in WPF. I'm leveraging the Microsoft Surface
newbie question, please forgive... I'm developing a Wpf UserControl that will eventually be bound
I am developing WPF application which will be executing on the 21-inch touch-screen. Along
I am developing a WPF application, that connects to several WCF services (that work
Context: I'm developing a WPF application which will contain a lot of different screens.
I am developing a WPF application that must meet Section 508 (Accessibility) requirements. In
I am developing a WPF project in vb.net and have multiple windows in it.
I am developing a WPF windows application and am getting into a trouble running
I'm developing WPF applications using MVVM pattern. I have ViewModel with code like this:

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.