Jorge Perez
Jorge Perez

Reputation: 47

Setting ComboBox Items Height

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.

Upvotes: 3

Views: 6976

Answers (1)

adminSoftDK
adminSoftDK

Reputation: 2092

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>

Upvotes: 13

Related Questions