Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting ComboBox Items Height

Tags:

c#

wpf

I am doing a touch application but the items of my ComboBox are very small. Is there any way to increase its size? I haven't found any way to do it. Thanks.

like image 940
Jorge Perez Avatar asked Sep 03 '25 03:09

Jorge Perez


1 Answers

This will do it, just give it the height and/or width you want within these setters.

 <ComboBox Width="200"
           Height="50"
           ItemsSource="{Binding MyList}">
        <ComboBox.ItemContainerStyle>
            <Style TargetType="ComboBoxItem">
                <Setter Property="Height" Value="50" />
                <Setter Property="Width" Value="50" />
            </Style>
        </ComboBox.ItemContainerStyle>
  </ComboBox>
like image 106
adminSoftDK Avatar answered Sep 05 '25 01:09

adminSoftDK