I’m having a hard time implementing a Miller Column interface in WPF, and was wondering if anyone has seen an implementation I could borrow from. I’ve done some searching and can’t find anything myself.
Currently I have my data organized in a hierarchy so that it can be placed in a TreeView, but I’d like to add the Miller Column view as an option in my program.
A possible solution came to me, and Phil confirmed that it was the right approach. I have to use an ItemsControl with a horizontal StackPanel as the ItemsPanel. Then I created a DataTemplate for my data type and used it for the ItemTemplate on my ItemsControl.
The data template:
The ItemsControl:
The code-behind:
This automatically removes and creates ListBoxes for each level of selection. A little syling and it could look pretty, too!