• win10 17025 触摸bug


    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.

    知识共享许可协议
    本作品采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议进行许可。欢迎转载、使用、重新发布,但务必保留文章署名林德熙(包含链接:http://blog.csdn.net/lindexi_gd ),不得用于商业目的,基于本文修改后的作品务必以相同的许可发布。如有任何疑问,请与我联系

  • 相关阅读:
    bodybuilding
    DBLINK的session无法关闭,报异常!
    失控
    eclipse
    Linux下查看用户列表
    org.apache.commons.httpclient
    java map 遍历
    java String split
    胸上肌到底要怎么练啊!
    POI操作Excel常用方法总结
  • 原文地址:https://www.cnblogs.com/lindexi/p/12087297.html
Copyright © 2020-2023  润新知