Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8837007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:37:16+00:00 2026-06-14T09:37:16+00:00

In my comboBoxes that have many items (> 10), I need to either: (a)

  • 0

In my comboBoxes that have many items (> 10), I need to either:
(a) Have all of the items display when the dropdown occurs
-or:
(b) Reduce the space between the items (it seems excessive, almost “cartoonish”)

So, I would really prefer both. How can I do one or the other or both?

It would seem the MaxDropDownHeight property would be just the ticket, but set to Infinity it doesn’t work/has a strange definition of Infinity.

Here’s the XAML for one of them with this problem:

<ComboBox x:Name="comboBoxDay" Grid.Row="4" Grid.Column="5" Margin="8" IsEnabled="False"></ComboBox>

…and what it contains:

for (int i = 1; i < 32; i++)
{
    comboBoxDay.Items.Add(i);
}

UPDATE

Setting the height to 15 cuts off part of the text; so does 18. And even then, only March-November are displayed. I also set MaxDropDownHeight to first 320, then 520. Here’s the entire XAML for the comboBox in question:

        <ComboBox x:Name="comboBoxFromMonth" Grid.Row="1" Grid.Column="1" 
Height="24" Width="80" MaxDropDownHeight="520" HorizontalAlignment="Left" 
VerticalAlignment="Center" Margin="4">
            <ComboBox.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding}" Height="20" />
                </DataTemplate>
            </ComboBox.ItemTemplate>
        </ComboBox>

…(January, February, and December still do not display without scrolling, although there is plenty of room below – real estate is not the problem).

It would seem all items in a comboBox should display BY DEFAULT, not require jumping through hoops to get it all to display…at least with a reasonable amount of items (42 or fewer).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T09:37:17+00:00Added an answer on June 14, 2026 at 9:37 am

    For (a), you’re right, you can use MaxDropDownHeight, but it will only go to the top/bottom of the screen, and no further. To make it fill the screen vertically, you’ll need to modify the default Control Template and give the Popup’s Placement property a different value (eg, Center):

    For (b) you can reduce the space between elements by defining an ItemTemplate:

    <ComboBox>
        <ComboBox.ItemTemplate>
            <DataTemplate>
                <TextBlock Text="{Binding}" Height="15" />
            </DataTemplate>
        </ComboBox.ItemTemplate>
    </ComboBox>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a JCombobox with many items and first of all them is a
I have three ComboBoxes such that C's items list is dependent on the selected
In my Winforms application I have a toolbar that contains many items (buttons with
I'm trying to style Comboboxes in WPF so that they are white, and have
I need to have a function in C++/CLI which do the link between a
I have a web project with many selects that are already programmed like a
So I have several comboboxes in my WPF application that don't change the selection
I'm working on a few ComboBoxes that need a select property as the top
I have a JComboBox with many items. I added an item listener to this
I have created combo box that I would like to load with all of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.