Prism: PopUpWindowAction + MouseDoubleClick and Touchscreen

Created on 28 Jun 2016  路  3Comments  路  Source: PrismLibrary/Prism

Hello,
i have the following Problem, I've created an short example Project:

  1. Works: If I make an mouse double click in retangle a PopUp will be shown and i can close it if i press one button with mouse(Test1|Test2|...).
  2. Works: If I make an mouse double click in retangle a PopUp will be shown and i can close it if i press one button with touch(Test1|Test2|...).
    3.Work don't work:
    If I make a touch double click in retangle a PopUp will be shown and i can close it if i press TWICE on a button with touch(Test1|Test2|...).

UserControlTouchWindowTest.zip

WPF

Most helpful comment

This is not related to Prism but rather how WPF handles focus during touch on a double click (double touch). The ListBox is keeping focus, so you have to give focus to the popup before you can close it with touch. Change your event to MouseUp and it will work.

All 3 comments

The attached project uses CustomPopUpWindowAction. This may not be a problem in Prism.

This is not related to Prism but rather how WPF handles focus during touch on a double click (double touch). The ListBox is keeping focus, so you have to give focus to the popup before you can close it with touch. Change your event to MouseUp and it will work.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings