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
35
Need to modify size of XamComboEditor buttons width
posted

I am needing to decrease the size of the button on the right side that expands the Combo box. The Metro Theme has a much larger button which is taking up too much space for my tight grid. I would like to change the size of the size Metro version to match the Royal Light version of XamDataGrid.

Another option I would be interested in is sizing the XamComboEditor to anticipate the extra space needed for the button. Right now if I do auto width of a XamComboEditor the contents are clipped off due to the button.

Any help with fixing this issue so that all the data can be displayed in the XamComboEditor when the dropdown is activated would be very helpful.

Thanks,

Nathan

Royal Light Theme XamComboEditor

Metro Theme XamCombo Editor

  • 1500
    Offline posted

    Hello Nathaniel,

    There is an exposed property of the editor letting you assign a style of your choice to the dropdown button. I have attached a sample achieving the above mentioned requirement.

    Basically, what I did was to go to the default styles of the editors and took the code for the style of the toggle button with Royal Light Theme.

    I have copied it over with the brushes(this is optional, you can assign your own collors) and set it to DropDownButtonStyle property of the combobox.

    Should you have any further questions, please let me know.

    Sincerely,

    Tihomir Tonev
    Associate Software Developer
    Infragistics

    XamComboEditor.zip