好的,我原以为这是一个简单的问题,但显然它让我感到困惑。
当我尝试设置 RibbonComboBox 的高度时,它并没有移动它的实际大小,只是围绕它的框。
这是我的 XAML:
<ribbon:RibbonComboBox
DisplayMemberPath="CompanyCode"
Height="22"
Margin="0,0,0,-30"
VerticalAlignment="Bottom"
Width="102">
<ribbon:RibbonGallery SelectedValue="{Binding Path=Companies.SelectedItem,
ValidatesOnDataErrors=true,
NotifyOnValidationError=true }">
<ribbon:RibbonGalleryCategory ItemsSource="{Binding Path=Companies.Items,
NotifyOnValidationError=true,
ValidatesOnDataErrors=true}" />
</ribbon:RibbonGallery>
</ribbon:RibbonComboBox>
我可以将高度更改为 200 或 1,但高度永远不会改变。
我究竟做错了什么?
谢谢, 埃罗克