【问题标题】:CommandBar Behavior When Keyboard Is Show显示键盘时的 CommandBar 行为
【发布时间】:2016-02-21 02:35:24
【问题描述】:

我的 UWP 应用中有 CommandBar

<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 中,按 Save 将隐藏 Keyboard 未执行 Click 事件。

我希望这个 CommandBar 表现得像 Windows Phone 8.1

【问题讨论】:

    标签: xaml windows-phone-8 win-universal-app


    【解决方案1】:

    我没有测试,但是你可以试试IsTabStop="False"

    <AppBarButton Icon="Save" Label="Save" Click="OnSave" IsTabStop="False"/>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-09
      • 2020-03-02
      • 2015-05-31
      • 1970-01-01
      • 2011-12-17
      • 1970-01-01
      • 2014-08-04
      • 1970-01-01
      相关资源
      最近更新 更多