Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
User interface 单击此代码在Windows Universal app中不起作用_User Interface_Button_Win Universal App_Windows 10 Mobile - Fatal编程技术网

User interface 单击此代码在Windows Universal app中不起作用

User interface 单击此代码在Windows Universal app中不起作用,user-interface,button,win-universal-app,windows-10-mobile,User Interface,Button,Win Universal App,Windows 10 Mobile,我正在做我的项目,我发现了这个问题 <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <Button HorizontalAlignment="Right" VerticalAlignment="Top" Content="click" Width="110" Height="110"/

我正在做我的项目,我发现了这个问题

<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
     <Button
         HorizontalAlignment="Right"
         VerticalAlignment="Top"
         Content="click"
         Width="110"
         Height="110"/>
</Grid>

这工作很棒。我在尝试创建自己的用户控件时发现了这个问题,我发现当您使用水平对齐或垂直对齐时,事件PointerPressed、PointerReleased、PointerExit都有问题,如果您的手机上安装了windows 10,请尝试使用此代码并找出问题所在。

这是仿真器触摸模式的问题,并非特定于您的应用程序。例如,如果您尝试在横向模式下使用“开始”菜单,您会发现它同样会被破坏

<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
     <Button
         HorizontalAlignment="Right"
         VerticalAlignment="Top"
         Content="click"
         Width="110"
         Height="110"/>
</Grid>

现在,您需要使用鼠标模式,而不是仿真器旁边垂直工具栏中的箭头图标。

是的,我测试了旧版本的windows 10,效果很好,但最新版本的mobile emulator有这个问题,谢谢您的回答和帮助,那么我如何使用鼠标模式呢?有没有使用鼠标模式的选项?!