好吧,我本以为这是个简单的问题,但显然这让我很困惑。
当我试图设置我的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,但高度永远不变。
我做错什么了?
谢谢,
爱乐