xceedsoftware / wpftoolkit

All the controls missing in WPF. Over 1 million downloads.
Other
3.87k stars 873 forks source link

CheckComboBox DropDown Button Missing #1781

Open LaurenceBunnage opened 3 weeks ago

LaurenceBunnage commented 3 weeks ago

I have discovered an interesting issue.

I was using the CheckComboBox in the header of a DataGrid (Not yours) and it was required to set the DataFrid Style to use thin scroll bars which seems to be a modern trend.

When I applied my style to make the DataGrid scroll bars thinner, the DropDown button on the CheckComboBox disappeared. Digging deeper, looking at the styles used, the size of the FropDown button is determined by the SystemParameters.VerticalScrollBarWidthKey which I had changed to 5 to make the scrollbars thinner.

I think using the SystemParameters.VerticalScrollBarWidthKey to set the size of the DropDown button is a bug or at least a big design flaw. It really should be based on the size of the DownArrowGeometry

XceedBoucherS commented 1 week ago

Hi LaurenceBunnage, Good observation ! This will be fixed in the next release. The size of the DropDown button will no longer depends on SystemParameters.VerticalScrollBarWidthKey.

Thank you !