天天看點

win10 17025 觸摸bug

在 win10 的 17025 可以容易讓 UWP 觸摸失效。做法是建立一個視窗背景是透明的 wpf 程式,把他置頂,這時所有 uwp 程式就無法觸摸

This article is written in both English and Chinese.

本文使用中文和英文兩個版本。

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.

我搭建了自己的部落格 https://lindexi.gitee.io/ 歡迎大家通路,裡面有很多新的部落格。隻有在我看到部落格寫成熟之後才會放在csdn或部落格園,但是一旦釋出了就不再更新

如果在部落格看到有任何不懂的,歡迎交流,我搭建了 dotnet 職業技術學院 歡迎大家加入

win10 17025 觸摸bug

本作品采用知識共享署名-非商業性使用-相同方式共享 4.0 國際許可協定進行許可。歡迎轉載、使用、重新釋出,但務必保留文章署名林德熙(包含連結:http://blog.csdn.net/lindexi_gd ),不得用于商業目的,基于本文修改後的作品務必以相同的許可釋出。如有任何疑問,請與我聯系。

部落格園部落格隻做備份,部落格釋出就不再更新,如果想看最新部落格,請到 https://blog.lindexi.com/

win10 17025 觸摸bug

本作品采用知識共享署名-非商業性使用-相同方式共享 4.0 國際許可協定進行許可。歡迎轉載、使用、重新釋出,但務必保留文章署名[林德熙](http://blog.csdn.net/lindexi_gd)(包含連結:http://blog.csdn.net/lindexi_gd ),不得用于商業目的,基于本文修改後的作品務必以相同的許可釋出。如有任何疑問,請與我[聯系](mailto:[email protected])。

繼續閱讀