itemtemplate Questions

1

I'm trying to create a ListBox that displays formatted text. I want to be able to change formatting from code. For displaying formatted text I chose TextBlock and intend to use the TextBlock.Inline...
Schoolfellow asked 25/12, 2020 at 9:51

1

Solved

I have created and imported an Item Template, a C# class template for use in Visual Studio. When I open a C# Class Library project I can create a new item from this template with Add > Class &gt...
Gaddi asked 14/8, 2020 at 13:40

2

Solved

I have multiple videos displayed they are bound with a videocollection in Mainviewmodel. Everything works fine untill I try to bind the enter command to Mainviewmodel. I Don't know the syntax for t...
Pentosan asked 15/8, 2013 at 3:32

1

Solved

Here's a visual idea of what I'm trying to accomplish: I want all the buttons on the left and right sides to align vertically, no matter where the TreeViewItem is located in the tree. I'm having...
Stem asked 14/4, 2020 at 21:27

2

Solved

Let's say I have a collection of objects of different classes. Each class has its UserControl DataTemplated in a resource file. Now I want to use ItemsControl to display the collection, but I want...
Borgerhout asked 23/10, 2010 at 11:19

3

I have listbox control which has list of colors. Here is code and Image: <ListBox Name="FillSelections" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Center" SelectedItem="{Bin...
Lithium asked 25/8, 2012 at 21:21

1

Solved

I am using WPF Prism.Mvvm. I have a navigation bar on the side containing a Listview bound to an Itemssource. Those Items contain an image and the content. Now my goal is to collapse the cont...
Cutting asked 14/7, 2018 at 8:16

2

Solved

I'm adding TreeViewItems manually in code behind and would like to use a DataTemplate to display them but can't figure out how to. I'm hoping to do something like this but the items are displayed a...
Gantrisin asked 23/7, 2009 at 23:24

5

I use a ComboBox as ItemTemplate inside a ListBox. My ComboBox is editable. When the user use the mouse wheel in the combobox, it change the current value. I don't want that. I want the ListBox to ...
Harrus asked 7/11, 2012 at 14:29

6

I am using a Listview with an Itemtemplate and a Headertemplate. Both templates contain 6 Columns. Everything is ok if i set a fixed column width for the templates - like in figure one. But i want...
Toler asked 12/12, 2012 at 22:38

3

Solved

I have a FlipView control with the DataTemplate defined as below: <FlipView x:Name="FlipView5Horizontal" Width="480" Height="270" BorderBrush="Black" BorderThickness="1" Style="{StaticResource ...
Aluminum asked 21/12, 2015 at 12:43

2

What is the difference between ControlTemplate DataTemplate HierarchalDataTemplate ItemTemplate
Cota asked 22/9, 2012 at 8:41

5

Solved

I'm using an ASP.NET Repeater to display the contents of a <table>. It looks something like this: <table cellpadding="0" cellspacing="0"> <asp:Repeater ID="checkboxList" runat="ser...
Votaw asked 18/6, 2013 at 12:27

1

Solved

I'm trying to add a true or false Visible attribute to my listview itemtemplate table. What I did is that I have a hiddenfield that is set at page load so that I can make a specific column visible ...
Anagram asked 17/7, 2014 at 13:32

2

So I'm using a button in the DataTemplate of my Listbox ItemTemplate. Any ideas how I would grab the index of the item of the Listbox from the button click? I can't see to grab the button's parent....
Warnerwarning asked 12/6, 2013 at 2:59

3

Solved

Ok, this is an embarassingly simple-looking problem, but is driving me crazy. I'm learning about DataTemplating and am trying to apply a very VERY simple ItemTemplate to a ListBox. However, when I...
Earlineearls asked 16/3, 2010 at 17:26

1

Solved

If I have a view with the following MvxListView definition: <Mvx.MvxListView android:layout_marginTop="10px" android:textFilterEnabled="true" android:choiceMode="singleChoice" android:layou...

1

I use MvvmCross framework. I want to use different item templates in one listview depending on ViewModel type. For example I have the list of AnimalViewModels. And I want KittenViewModel and PuppyV...
Paramour asked 27/6, 2013 at 11:11

2

In WPF Listbox, I'm confused with these 2 notions: ItemTemplate and ItemContainerStyle Can someone explain me more?
Precincts asked 14/5, 2013 at 14:39

1

I created a SplitPage view from canned templates that has the following ListView definition: <!-- Vertical scrolling item list --> <ListView x:Name="itemListView" AutomationProperties....

1

Solved

I am using dynamic ItemTemplate for ListView which populated from database.Here is how I do when I need to display string column "Parametr" (or some other datatypes): //my .ascx file <li>&...
Ninnyhammer asked 21/10, 2012 at 21:54

1

Solved

I have the following ViewModel-Property: public List<List<string>> Names .... //It's a dependency property In my view I would like an ItemsControl that has an ItemsControl: <Ite...
Margarettamargarette asked 28/11, 2011 at 14:14

1

Solved

PersonVM.cs public class MainWindowVM { public MainWindowVM() { PersonList = new ObservableCollection<Person>(Employees); } private Person[] Employees = new Person[] { new Person { I...
Hopeless asked 10/2, 2011 at 17:2

2

Solved

First, here is the previous post that deals with the ListBox AccountListBox data binding to my ObservableCollection<Account> Accounts from the AccountsCollection.cs class. So now I have a b...
Medorra asked 24/11, 2010 at 11:37

2

Solved

I've got a class FruitViewModel. It describes ViewModels for ListBox items. <ListBox ItemsSource="{Binding Fruits}"> And I've got class BananaViewModel : FruitViewModel and class Apple...
Odo asked 22/10, 2010 at 22:54

© 2022 - 2024 — McMap. All rights reserved.