xceedsoftware / wpftoolkit

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

CheckComboBox DropDown Button Missing #1781

Open LaurenceBunnage opened 2 months ago

LaurenceBunnage commented 2 months 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 month 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 !