This article is written in both English and Chinese.

本文使用中文和英文两个版本。

在 win10 的 17025 可以容易让 UWP 触摸失效。做法是创建一个窗口背景是透明的 wpf 程序,把他置顶,这时所有 uwp 程序就无法触摸。

I found the easy way to make the UWP app touch not work in win10 17025. To create a wpf app with transparent background and make it Topmost, you can see all of the UWP app’s touch not work.

中文


步骤:

  1. 创建一个 wpf 程序
  2. 设置 wpf 的窗口最大化
  3. 设置 wpf 程序的背景为透明
  4. 启动 wpf 程序

这时就可以看到 Edge 等软件都无法触摸

在检查的时候可以使用ManipulationDemo,可以看到在触摸的时候没有 Pointer 消息。


下面是关闭 wpf 程序之后,可以看到最下面有 Pointer 消息


下面是这个wpf软件代码:

        public MainWindow()
{
InitializeComponent();

AllowsTransparency = true;
WindowStyle = WindowStyle.None;
WindowState = WindowState.Maximized;
Background = Brushes.Transparent;
Topmost = true;
}


English

Step:

  1. Create a wpf app
  2. Set the wpf app’s windows state is Maximized
  3. Set the wpf app’s windows background is transparent
  4. Run the wpf app

Then you can see all of the uwp app’s such as edge and setting touch not work.

You can use ​​ManipulationDemo​​ to help you see the Pointer message that cant get when touch. I use ​​ManipulationDemo​​ to find the pointer message have not be received. The app can only receive the mouse message.


I took an image that shows the pointer message when I closed the wpf app.


This is the wpf app’s code:

        public MainWindow()
{
InitializeComponent();

AllowsTransparency = true;
WindowStyle = WindowStyle.None;
WindowState = WindowState.Maximized;
Background = Brushes.Transparent;
Topmost = true;
}


This is my system and I think in win10 17025 the windows cant make the app uses pointer message to work that exists another transparent background app in above.