Questions tagged [itemspanel]

36 questions
41
votes
3 answers

WrapPanel as ItemPanel for ItemsControl

Still fooling around with WPF and learning as I go. Trying now to build a dynamic grouping of controls (mostly Buttons but might include CheckBoxes and others). I had no idea what was the best way to do this so I tried creating a ItemsControl style…
Ingó Vals
  • 4,788
  • 14
  • 65
  • 113
22
votes
2 answers

ItemsControl, ItemsPanel and ItemsPresenter (Silverlight, XAML)

I'm utterly confused by these 3 terms, when to use which? What's the relationship and they are children of which controls? Is it correct to say this is the tree: ItemsControl > ItemsPresenter > ItemsPanel
bcm
  • 5,470
  • 10
  • 59
  • 92
18
votes
3 answers

how to make uniformgrid vertically

I'm using UniformGrid and it's making the items display horizontally. Is there a way to make it display vertically?
Calvin
  • 631
  • 5
  • 17
  • 38
16
votes
3 answers

How to get ListBox ItemsPanel in code behind

I have a ListBox with an ItemsPanel
Ben
  • 1,000
  • 2
  • 15
  • 36
10
votes
1 answer

ListView: define ItemsPanelTemplate in resource dictionary

I have a ListView which layout looks like a Windows Explorer view (icon + some details), bound to a list somewhere in the ViewModel. My aim here is to be able to switch between explorer view or classic view whenever we want. I could define an…
Damascus
  • 6,553
  • 5
  • 39
  • 53
6
votes
2 answers

Using HierarcicalDataTemplates in conjunction with TreeViewItem control templates

I am having some difficulty figuring out how to template the following TreeView item layout: I have several items, SearchList, which contains a collection of Search, which contains a collection of DataSet (sort of, but that is beside the point). …
CodeWarrior
  • 7,388
  • 7
  • 51
  • 78
4
votes
1 answer

Why is my TabControl ignoring my ItemsPanelTemplate?

I've used the ItemsPanelTemplate on other controls such as the ListBox, so I figured doing the same thing for the TabControl would be simple. Apparently, I'm missing something and the TabControl is completely ignoring what I place in the…
Ashley Grenon
  • 9,305
  • 4
  • 41
  • 54
4
votes
5 answers

WPF - ItemTemplate not acting as expected

I have a UserControl which I'm using to display a list of UIElements. The control consists of a single ItemsControl with it's ItemPanelTemplate switched for a horizontal StackPanel, its ItemsSource bound to a DependencyProperty exposed by the…
EightyOne Unite
  • 11,665
  • 14
  • 79
  • 105
4
votes
0 answers

Set ItemsPanel of a DataGridCellsPresenter via Style not working

I'm trying to set the ItemsPanel of a DataGridCellsPresenter in the Resources of my Window.