Top "Itemscontrol" questions

Represents a control that can be used to present a collection of items.

How to make WPF wrappanel child items to stretch?

I'd like to create an ItemsControl where child items are placed like a WrapPanel, but child Items should take as …

wpf xaml custom-controls itemscontrol wrappanel
WPF Dynamic Layout with ItemsControl and Grid

I am creating a WPF form. One of the requirements is that it have a sector-based layout so that a …

wpf dynamic wpf-controls grid itemscontrol
How to setup a grid as template for an Items control?

I'm trying to create an ItemsControl that uses a grid as its ItemsPanel in such a way that it has …

wpf grid itemscontrol itemssource
WPF - Best way to remove an item from the ItemsSource

I'm writing a custom ItemsControl (a tabbed document container), where each item (tab) can remove itself from the UI when …

wpf itemscontrol itemssource
Disable WPF TreeView (or TreeViewItem) selection?

Is there a nice way (except retemplating the whole TreeViewItem.Template) to disable selection in TreeView? I am basically looking …

wpf xaml treeview selection itemscontrol
Use different template for last item in a WPF itemscontrol

I'm using a custom template in my itemscontrol to display the following result: item 1, item 2, item3, I want to change …

wpf templates itemscontrol
How do I bind a List<string> to an ItemsControl?

In my presenter I have this property: public List<string> PropertyNames { get; set; } And I want to list …

c# wpf xaml itemscontrol
Item spacing in WPF ItemsControl

I'm displaying a List<string> collection in an ItemsControl. The problem is that there is no spacing between …

wpf xaml .net-4.0 itemscontrol
What exactly does Panel.IsItemsHost do?

What does the Panel.IstItemsHost attached property used for? I see plenty of examples of people setting it on the …

wpf itemscontrol
Bind to ItemsControl's DataContext from inside an ItemTemplate

I have an ItemsControl whose for the ItemTemplate DataTemplate contains a Button. I want the Command on the button to …

wpf data-binding xaml datatemplate itemscontrol