【发布时间】:2011-08-03 01:41:11
【问题描述】:
在普通的WPFButton控件中,HorizontalContentAlignment可以设置左侧Button的Content。但是在RibbonButton控件中,没有Content,而是被Label代替,不能被HorizontalContentAlignment对齐。
如何水平对齐 RibbonControl 的 Label?或者,这可能吗?
【问题讨论】:
标签: c# wpf ribbon-control
在普通的WPFButton控件中,HorizontalContentAlignment可以设置左侧Button的Content。但是在RibbonButton控件中,没有Content,而是被Label代替,不能被HorizontalContentAlignment对齐。
如何水平对齐 RibbonControl 的 Label?或者,这可能吗?
【问题讨论】:
标签: c# wpf ribbon-control
RibbonButton 中绝对有Content 和HorizontalContentAlignment,它继承自Button,只需检查the MSDN docs。
【讨论】: