如何在 RibbonButton 中设置 HorizontalContentAlignment
在普通的WPF Button控件中,HorizontalContentAlignment
可以设置Button左侧的Content。但在RibbonButton控件中,没有Content,而是用Label代替,无法通过HorizontalContentAlignment
对齐。
如何水平对齐RibbonControl的Label?或者,这可能吗?
In normal WPF Button control, HorizontalContentAlignment
can set the Content of the Button the left. But in RibbonButton control, there is no Content, but replaced by Label, which cannot be aligned by HorizontalContentAlignment
.
How to horizontal align Label of RibbonControl? Or, is that even possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
RibbonButton中绝对有一个
Content
和HorizontalContentAlignment
,它继承自Button,只需检查MSDN 文档。There absolutely is a
Content
andHorizontalContentAlignment
in RibbonButton, it inherits from Button, just check the MSDN docs.