首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何使CommandBar点在UWP中下降

如何使CommandBar点在UWP中下降
EN

Stack Overflow用户
提问于 2020-10-23 14:03:00
回答 1查看 119关注 0票数 1

当按下按钮时,CommandBar会向上扩展。如何使CommandBar向相反的方向扩展?

代码:

代码语言:javascript
复制
     <CommandBar>
        <AppBarToggleButton Icon="Shuffle" Label="Shuffle" />
        <AppBarToggleButton Icon="RepeatAll" Label="Repeat"/>
        <AppBarSeparator/>
        <AppBarButton Icon="Back" Label="Back" />
        <AppBarButton Icon="Stop" Label="Stop" />
        <AppBarButton Icon="Play" Label="Play" />
        <AppBarButton Icon="Forward" Label="Forward"/>
        
        <CommandBar.Content>
            <TextBlock Text="Now playing..." Margin="12,14"/>
        </CommandBar.Content>
    </CommandBar>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-10-23 14:09:42

您应该按照建议的ControlTemplate 这里进行编辑。

GitHub上有一个完整的代码示例

代码语言:javascript
复制
<CommandBar Style="{StaticResource OpenDownCommandBar}">
    <CommandBar.Content>
        ...
    </CommandBar.Content>
</CommandBar>
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64501483

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档