Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WPF RibbonComboBox Height

Ok, I would have thought this was a simple question, but apparently it's got me confused.

When I try to set the height of my RibbonComboBox, it's not moving actual size of it, just the box that surrounds it.

alt text

Here is my 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>

I can change the height to 200 or 1 but the height never changes.

What am I doing wrong?

Thanks, Eroc

like image 707
ErocM Avatar asked Oct 13 '22 20:10

ErocM


1 Answers

You can change the height easily if you set the DropDownHeight

like image 159
René Winter Avatar answered Nov 09 '22 22:11

René Winter