【问题标题】:UWP CommandBar dynamic overflow behavior not workingUWP CommandBar 动态溢出行为不起作用
【发布时间】:2016-06-22 12:06:53
【问题描述】:

this page in Windows Dev Center 上面写着

当空间有限时,新的动态溢出行为会自动将主要命令移动到 SecondaryCommands 区域。

但在我的应用程序中只有 4 个按钮可见,第 5 个不存在,如果我打开菜单也不存在,我必须手动将其放入 SecondaryCommands 列表中,以使 Windows 显示它。
我做了一个简单的 CommandBar 来测试它

<CommandBar>
    <AppBarButton Icon="Find" Label="test" />
    <AppBarButton Icon="Find" Label="test" />
    <AppBarButton Icon="Find" Label="test" />
    <AppBarButton Icon="Find" Label="test" />
    <AppBarButton Icon="Find" Label="test" />
</CommandBar>

构建目标和最低版本是 10.0 10586。
我还注意到CommandBarOverflowButtonVisibility 和类似的属性找不到。

【问题讨论】:

    标签: c# xaml uwp commandbar


    【解决方案1】:

    这是一个直到周年更新才会出现的功能——文档更新得太早了。您可以在大约 11:35 在this video from //BUILD 2016 中查看该功能的详细说明。它目前在 Build 10586 中可用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-09-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-10
      相关资源
      最近更新 更多