Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2275
Sizing the dropdown
posted

I can't find any documentation on how to size the dropdown portion of the combobox.  I have two columns and 4 or 5 rows.  I want all columns and rows to be visible when the use expands their selections.  Right now it's only as wide as the combo and it's showing less than one row.

Thank you.

Mike

Parents
No Data
Reply
  • 34510
    Offline posted

    Hi Mike,

    I've been looking into your requirements and I believe I have the right sample for you.  This sample demonstrates how to change the dropdown width.  The sample also automatically sizes the dropdown width to show all the columns.

    In the sample I handle the dropdown opening event and inside this event I traverse the visual tree of the combo editor to get the Popup that is used for the dropdown.  From the Popup it's possible to change the width and height of the dropdown.

    Let me know if you have any questions on this.

    xamMultiColumnCombo.zip
Children