hierarchicaldatatemplate Questions

12

Solved

I have a TreeView which uses a HierarchicalDataTemplate to bind its data. It looks like this: <TreeView x:Name="mainTreeList" ItemsSource="{Binding MyCollection}> <TreeView.Resources&g...
Punk asked 5/3, 2009 at 22:27

3

Solved

I am reading in JSON and then displaying it in a WPF treeview. Here is the code... Class MainWindow Public Sub New() InitializeComponent() Dim dic = GetThreadedObject(GetJASN())("phases") Dim...
Berkeleianism asked 30/3, 2018 at 19:17

3

Solved

I refer to this article: WPF TreeView HierarchicalDataTemplate - binding to object with multiple child collections and modify the tree structure like: Root |__Group |_Entry |_Source In Entr...
Unpeopled asked 10/2, 2011 at 5:17

2

is it possible to add a Binding to a ConverterParameter in a MultiBinding? Something like this: <HierarchicalDataTemplate DataType="{x:Type Elements:RootElement}"> <HierarchicalDataTemp...

1

Solved

Following this question, I have another question about TreeView. What I already have is a TreeViewwith HierarchicalDataTemplate, in which I can change the HierarchicalDataTemplate of level2 (like...

2

I've created a DataTemplateSelector which is initialized with a collection of known interfaces. If an item passed into the selector implements one of those interfaces, the associated data template ...

2

Solved

Is there a way to specify in a TreeView's HierarchicalDataTemplate to use a different ContextMenu depending on a property on the data an item is bound to? For instance, display one ContextMenu if ...

1

Solved

I have a TreeView that looks like this: <TreeView Grid.Row="1" x:Name="InspectionResultsTreeView" ItemsSource="{Binding Source={StaticResource InspectionTypeGroupViewSource}, Path=Groups}" It...
Stoop asked 16/9, 2015 at 0:24

4

Solved

I am trying to get my tree view to group a collection of similar items by what they are. To keep things generic, my object hierarchy could look like this: Objects Object Group #1 Item #1 (...
Carrico asked 11/2, 2010 at 22:41

3

Solved

I have a TreeView intended to operate on two levels. For his I have two HierarchicalDataTemplate and two custom types. The ItemsSource is linked to a ObservableCollection and everything works fine....
Rahmann asked 26/3, 2015 at 19:28

3

Solved

I have a data-bound TreeView and I want to bind SelectedItem. This attached behavior works perfectly without HierarchicalDataTemplate but with it the attached behavior only works one way (UI to dat...

5

Solved

Consider the following collection. True False False False True True False False I want to display it in a structured way, say, in a TreeView. I want to be able to draw borders around entire gro...
Parang asked 25/9, 2009 at 15:40

1

How would you go about using a CollectionViewSource (to supply sorting behavior) in conjunction with a HierarchicalDataTemplate's ItemsSource? So given the code below, how could I apply sorting o...
Seraglio asked 4/8, 2014 at 21:3

1

Solved

I have a tree control that exhibits very poor performance and I'm trying to track the source of the problem. I am trying to work out whether warnings such as the following are important: System.W...

2

Solved

I have a TreeView with a HierarchicalDataTemplate. The items are filled correctly but I can't click on the TreeView items. (I can't select one, so that is marked blue). I can click in front of the ...
Kabob asked 14/2, 2013 at 14:44

2

Solved

I have a TreeView and I am trying to implement a style that will allow me to place a border around all the children of a particular node using the HierarchicalDataTemplate. An example of what I wan...
Mernamero asked 10/5, 2013 at 16:7

1

Solved

I have two Many-To-Many with Payload entities as shown below: So, to make an Assembly stored in MasterPartNumber with a part number: MasterPartNumber.pn, I use the navigation property ParentBOM...
Frazzle asked 19/4, 2013 at 0:50

2

Solved

For my treeview I have two different classes that provide the ItemsSource. public class TreeViewModel : ViewModelBase { public ObservableCollection<NodeViewModel> Items { get; set; } } pub...
Arnoldarnoldo asked 6/3, 2013 at 6:17

2

Solved

just starting with wpf. I need to bind the object (Hierarchical) Folder public class Folder { public Folder() { this.Name = string.Empty; this.Modules = new ObservableCollection<Module&gt...
Apologia asked 21/9, 2012 at 14:22

1

Solved

I need to display Hierarchy in the treeview. But Details should be displayed in the datagrid. How do I have to write my template to achieve this? I misunderstand smth in templates for now. &lt...
Whitelaw asked 13/8, 2012 at 16:40

4

Solved

I am trying to get a TreeView to bind my collection so that all groups show nested groups and each group will show entry. How can I use the HierarchicalDataTemplate so that the TreeView will proce...
Lannie asked 16/12, 2009 at 5:21

2

Solved

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...
Monumental asked 2/11, 2011 at 21:45

2

Solved

I'd like to display arbitrary XML in a TreeView, with expanding and collapsing nodes, showing both the element name and the set of attributes and their values. I think I can do this with Hierarchic...
Aachen asked 3/10, 2011 at 13:52

3

Solved

I want to implememt a tree view with has the following structure..... [RootNode] <---- Root of tree --[ParentNode P1] <---- Object of ModelClass P1 ----[ChildNode C1] <----- Object of M...
Orthochromatic asked 18/5, 2011 at 13:44

2

Solved

I have a wpf tree view that displays nodes of various types with corresponding images such as folder images. Initially, the tree and its nodes with corresponding images display as expected. However...
Bernardo asked 26/4, 2011 at 22:37

© 2022 - 2024 — McMap. All rights reserved.