I would like a CheckListBox that stacks items vertically until the space is exhausted, and then continues at the top-right. For example, I can do the following with a plain ListBox in native WPF:
When I try the same with a CheckListBox, it seems to ignore the disabling of the vertical scroll bar (the ItemsPanel seems to be followed because changing the WrapPanel orientation has an effect):
For now, there is no easy way since the CheckListBox's default ControlTemplate uses an ItemsPresenter.
You best option would be to redefine the ControlTemplate to use a WrapPanel. Maybe something like:
I would like a
CheckListBox
that stacks items vertically until the space is exhausted, and then continues at the top-right. For example, I can do the following with a plainListBox
in native WPF:When I try the same with a
CheckListBox
, it seems to ignore the disabling of the vertical scroll bar (theItemsPanel
seems to be followed because changing theWrapPanel
orientation has an effect):Is this a bug? Is there any way to achieve the desired item layout with a
CheckListBox
?