我有CommandBar在我的UWP应用程序中:
<Page.BottomAppBar>
<CommandBar x:Name="BottomBar">
<AppBarButton Icon="Save" Label="Save" Click="OnSave"/>
<AppBarButton Icon="Clear" Label="Reset"/>
</CommandBar>
</Page.BottomAppBar>

在Windows Phone 8.1中,当显示Keyboard时,如果我按下Save,它将执行OnSave方法。但是在UWP中,按保存将隐藏Keyboard而不是执行Click事件。
我要这个CommandBar表现得像Windows Phone 8.1。
发布于 2016-03-02 07:52:17
我没有测试它,但是您可以试试IsTabStop="False"
<AppBarButton Icon="Save" Label="Save" Click="OnSave" IsTabStop="False"/>https://stackoverflow.com/questions/35531635
复制相似问题