You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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):
Is this a bug? Is there any way to achieve the desired item layout with a CheckListBox?
The text was updated successfully, but these errors were encountered:
cwenger
changed the title
CheckedListBox does not allow vertical item layout with horizontal overflow
CheckListBox does not allow vertical item layout with horizontal overflow
Dec 31, 2023
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
?The text was updated successfully, but these errors were encountered: