Well, you can XAML here:
<ComboBox Name="ComboBox"> <ComboBox.ItemsPanel> <ItemsPanelTemplate> <UniformGrid Columns="2"/> </ItemsPanelTemplate> </ComboBox.ItemsPanel> </ComboBox>
Now a simple test, adding numbers from 0 to 8, gives:

Now you can style everything you want ... :)
Of course, each element (each number, in this particular case) is a separate, clickable element, simply because there are no misunderstandings.
[EDIT] I just noticed that you want to do it the other way around, that is, in the direction of the "lines", if so, then it might be better to use a WrapPanel , and someone suggested an answer in another. UniformGrid first fills the grid in the column.
Maybe there is a way to do this with UniformGrid , but there is no explicit and simple change with one click (I was not here before :)
source share