1

我已经从 microsoft ( https://code.msdn.microsoft.com/windowsapps/File-picker-app-extension-0cb95155 ) 下载了文件打开选择器示例,用于测试文件打开选择器合同。

我安装了示例应用程序,然后浏览了文件选择器 UI(我可以在其中选择已安装的应用程序以从中选择文件)。从那里我无法使用触摸屏与 UI 交互。鼠标工作正常。该示例适用于 Windows 8.1 中的触摸。

它只忽略点击事件。悬停动画仍然发生。

我还用 aGridView和 a做了一个非常简单的应用程序ButtonGridView.ItemClick触摸效果很好,但按钮点击事件可能每 30 次点击才会起作用。我尝试设置Click,PointerReleasedCommand.

我尝试了内置的照片应用程序,并得到了相同的结果。触摸不适用于GridView.

GridView这是我对触摸点击事件响应不佳的简单页面(减去):

public sealed partial class App : Application
{
        ...
        protected override void OnFileOpenPickerActivated(FileOpenPickerActivatedEventArgs args)
        {
            var root = new Frame();
            Window.Current.Content = root;
            root.Navigate(typeof(MainPage), null);
            Window.Current.Activate();
            base.OnFileOpenPickerActivated(args);
        }
        ...
}

<Page
    x:Class="FilePickerTest.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:FilePickerTest"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Button Content="Sample"
                Width="400"
                Height="100"
                Click="Button_Click"/>
    </Grid>
</Page>

其他人注意到这一点并想出一个解决方法吗?

4

0 回答 0