c# - UWP Commandbar 到右侧

标签 c# xaml uwp commandbar

我想将 CommandBar 移到右侧,让 AppBarButtons 从上到下排列。换句话说,我想将 CommandBar 从页面顶部向右侧旋转 90 度

我怎样才能做到这一点?

J.

最佳答案

CommandBar 没有垂直方向模式,所以你不能这样做。您可以使用

将其旋转 90 度
<CommandBar.RenderTransform>
    <RotateTransform CenterX="0" CenterY="0" Angle="90" />
</CommandBar.RenderTransform>

但按钮也会旋转。您应该考虑使用不同的控件,例如 SplitView。

关于c# - UWP Commandbar 到右侧,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48175002/

相关文章:

c# - 错误映射数据类型 Oracle 和 C#

C# WPF MVVM 组合框绑定(bind)

c# - MultiBinding 上的 DataGridColumn SortMemberPath

c# - 如何更新 MongoDB 文档中的 <byte, string> 字典

c# - 数据触发器适用于 TextBox,但不适用于 TextBlock?

c# - 如何在 IValueConverter 中使用 targetType 参数?

c# - 保存加载UWP的文件夹路径

c# - (ILC0005错误)我无法编译UWP x64/x86发布项目

uwp - UWP BLE 代码中的隐秘 System.ArgumentException

c# - 'out' 参数与通用/模板参数 : best practice