Questions tagged [itemspresenter]
17 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
5
votes
1 answer
WPF - Implement ItemTemplate for an ItemsPresenter?
I've been working on a SplitButton control for WPF and its basically done, but I'm trying to go through all the possible properties that can be set on it and make sure they are actually implemented. I mostly have only two properties left to…

Thrash505
- 369
- 2
- 4
- 16
3
votes
2 answers
Using a Grid as an ItemsHost
I would like to use a Grid as an ItemsHost but none of the items appear in their bound (column, row) positions. How can I make this work? As a simple example:
XAML
…

Bryan Anderson
- 15,969
- 8
- 68
- 83
2
votes
2 answers
Is it possible to override the ItemsPresenter to use a Virtualizing StackPanel instead of a regular stack panel?
Background
I have a custom control that inherits from a TreeView and is modified to display in a data grid style. The problem I am seeing is with performance when expanding the tree. This is common from my research with Tree Views. Upon inspection…

tsells
- 2,751
- 1
- 18
- 20
2
votes
1 answer
A ItemsControl without a ItemsPresenter (Silverlight)
I created a control that inherited the ItemsControl, and the control that I made
does not have a ItemsPresenter for its template. Instead, I have a Grid.
I want to make a list like this:
(Item 1)
(GridSplitter)
(Item 2)
(GridSplitter)
(Item…

Peter
- 97
- 1
- 6
2
votes
1 answer
Why does ItemsPresenter override my DataGrid's foreground style?
I have a DataGrid style in App.xaml: