これは簡単な質問だと思うでしょうが、明らかに私は混乱しています。WPF RibbonComboBoxの高さ
私のRibbonComboBoxの高さを設定しようとすると、それを囲むボックスの実際のサイズは移動しません。
<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に高さを変更することができますが、高さが変わることはありません:
は、ここに私のXAMLです。
私は間違っていますか?
おかげで、 Eroc
を設定する場合にも、(少なくともMicrosoftのSystem.Windows.Controls.Ribbonコントロールで)グリッドのいずれかで同じことをしなければならない簡単に高さを変更することができます。 –