Windows runtime 触摸在Windows 10文件打开选择器中不工作
我已经从microsoft下载了文件开放选择器示例,用于测试文件开放选择器合同 我安装了示例应用程序,然后通过文件选取器UI选择要从中选取文件的已安装应用程序。在那里,我无法使用触摸屏与UI交互。这只老鼠很好用。该示例在Windows 8.1中与touch配合良好 它只会忽略单击事件。悬停动画仍然会发生 我还制作了一个非常简单的应用程序,只有一个GridView和一个按钮。GridView.ItemClick可以很好地使用touch,但是按钮单击事件可能每30次单击只起作用一次。我尝试设置Click、PointerReleased和Command 我尝试了内置的照片应用程序,得到了同样的结果。触摸不适用于GridView之外的按钮 以下是我的简单页面减去GridView,它对点击事件的响应不好:Windows runtime 触摸在Windows 10文件打开选择器中不工作,windows-runtime,touch,microsoft-metro,windows-10,fileopenpicker,Windows Runtime,Touch,Microsoft Metro,Windows 10,Fileopenpicker,我已经从microsoft下载了文件开放选择器示例,用于测试文件开放选择器合同 我安装了示例应用程序,然后通过文件选取器UI选择要从中选取文件的已安装应用程序。在那里,我无法使用触摸屏与UI交互。这只老鼠很好用。该示例在Windows 8.1中与touch配合良好 它只会忽略单击事件。悬停动画仍然会发生 我还制作了一个非常简单的应用程序,只有一个GridView和一个按钮。GridView.ItemClick可以很好地使用touch,但是按钮单击事件可能每30次单击只起作用一次。我尝试设置Cli
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>
还有人注意到这一点并想出解决办法吗?噢。。我可以重现这个问题。我的图像查看器应用程序“PICT8”支持文件选择器合同,但不能与touch一起使用。当我在以前的Win10版本上测试我的应用程序时,它运行良好…嗯。。。我没有解决这个问题的方法。如果它是可复制的,请确保将其添加到反馈应用程序中。哦。。我可以重现这个问题。我的图像查看器应用程序“PICT8”支持文件选择器合同,但不能与touch一起使用。当我在以前的Win10版本上测试我的应用程序时,它运行良好…嗯。。。我没有解决此问题的方法。如果它是可复制的,请确保将其添加到反馈应用程序中。