itemtemplate Questions
2
Solved
I am able to use an ItemTemplate within an ItemsControl to render items in a specific format. However, if one of the items within the ItemsControl happens to be, say, a TextBox, that TextBox is ren...
Twelfthtide asked 1/10, 2010 at 21:37
1
Solved
I'm quite new to the WPF world and I'm having some problems with templating items in an ItemsControl. What I need is to template elements (mostly buttons) inside an ItemsControl (or the like).
If...
Thule asked 13/8, 2010 at 11:26
2
Solved
I have an ObservableCollection<Object> that contains two different types.
I want to bind this list to a ListBox and display different DataTemplates for each type encountered. I can't figure ...
Leis asked 3/8, 2010 at 20:31
1
In WPF4.0, I have a class that contains other class types as properties (combining multiple data types for display). Something like:
public partial class Owner
{
public string OwnerName { get; set...
Saxhorn asked 17/6, 2010 at 15:21
2
In WPF Listbox, I'm confused with these 2 notions:
ItemTemplate and ItemsPanelTemplate
Can someone explain me more?
Thanks
John
Mincey asked 11/9, 2009 at 7:40
1
Solved
I have a ListBox with an ItemTemplate consisting of a TextBlock and a ComboBox. The problem is that the width of the text inside the TextBlock is not the same for each item and the ComboBox control...
Racialism asked 9/7, 2009 at 9:14
1
Solved
In the following code, I tell the ComboBox to use the DataTemplate called CustomerTemplate by assigning its ItemTemplate attribute.
StackPanel, however, doesn't have an ItemTemplate attribute.
Ho...
Kathykathye asked 18/6, 2009 at 10:8
4
Solved
I'm using an asp.net repeater to create a bunch of images. The image markup is all the same so the standard <ItemTemplate> is fine.
However, I want to wrap K images in a div. Lets say I bind...
Kisung asked 18/2, 2009 at 6:14
3
Solved
I am trying to understand how best to extend the ListBox control. As a learning experience, I wanted to build a ListBox whose ListBoxItems display a CheckBox instead of just text. I got that workin...
Arnuad asked 23/3, 2009 at 23:55
2
Solved
I have a listbox, and I have the following ItemTemplate for it:
<DataTemplate x:Key="ScenarioItemTemplate">
<Border Margin="5,0,5,0"
Background="#FF3C3B3B"
BorderBrush="#FF797878"
Bor...
Grasmere asked 29/10, 2008 at 21:44
2
Solved
I have many items inside a list control. I want each item to have a different item template depending on the type of the item. So the first item in the list is a ObjectA type and so I want it to be...
Korry asked 30/9, 2008 at 11:37
2
Solved
Using WPF, I have a TreeView control that I want to set its ItemTemplate dynamically through procedural code. How do I do this? I assume I need to find the resource somewhere.
myTreeViewControl.It...
Bosk asked 27/8, 2008 at 20:48
© 2022 - 2024 — McMap. All rights reserved.