Questions tagged [itemspaneltemplate]
50 questions
37
votes
12 answers
ListBox with Grid as ItemsPanelTemplate produces weird binding errors
I've got a ListBox control and I'm presenting a fixed number of ListBoxItem objects in a grid layout. So I've set my ItemsPanelTemplate to be a Grid.
I'm accessing the Grid from code behind to configure the RowDefinitions and ColumnDefinitions.
So…

Craig Shearer
- 14,222
- 19
- 64
- 95
16
votes
2 answers
What is the difference between ItemTemplate and ItemPanelTemplate?
In WPF Listbox, I'm confused with these 2 notions:
ItemTemplate and ItemsPanelTemplate
Can someone explain me more?
Thanks
John

user96547
- 583
- 10
- 18
11
votes
1 answer
7
votes
1 answer
Setting the GroupStyle.Panel of a ListView on Windows Phone
I'm trying to create a ListView with grouping where the elements in each group are shown horizontally (as a scrollable content). No matter what I tried with the GroupStyle.Panel of the ListView it doesn't seem to have any effect on the list.
Here is…

Marius Bancila
- 16,053
- 9
- 49
- 91
7
votes
2 answers
Wpf How to change List box ItemspanelTemplate using Trigger
I need to set the ItemsPanelTemplate property of a ListBox based on a DependencyProperty on the control. How do I use the DataTemplateSelector to do that?
I have something like: