I'm trying to reduce the amount of space between TreeView items to fit more vertically. I'm guessing that it's a matter of styling the ItemContainer Style or ItemContainer template in the TreeView, but I can't seem to get at the correct properties. Can anyone point me in the right direction?
...
I have a corollary question to This one.
How can you change the spacing between the top of the TreeView Control and the first TreeViewItem? Specifically, I want to REDUCE the space between the top of the control and the first item. As with the other question, I'm guessing that I'll need go restyle the TreeView. But, what style do I nee...
The problem: We want to bind a HierarchicalDataTemplateās ItemsSource property to a CollectionViewSource, to perform grouping and filtering.
The background: The original issue we were working on had to do with filtering a TreeView. Specifically, we found that using a CollectionViewSource to filter worked but caused the TreeView nodes to...
I have a simple WPF TreeView with icons
<TreeView Name="TreeViewThings" ItemsSource="{Binding}">
<TreeView.Resources>
<HierarchicalDataTemplate DataType="{x:Type local:Thing}"
ItemsSource="{Binding Children}">
<StackPanel Orientation="Horizontal" Margin="2">
<Imag...
I was able to follow Justin Angel's (Silverlight team member) advice from this question to scroll to a particular item in a TreeView. Unfortunately, it simply isn't working in my project.
Based on Justin's advice, I implemented the extension methods he designed which allowed me to get a TreeViewItem from an underlying object and in trac...
Hey there. I hope this question hasn't come up before - I couldn't find it on the list of related questions.
Anyway, I'm a fairly newbie programmer (first year of a computing degree, so I know about squat), and I'm currently having a play with C# and WPF. For fun, I'm trying to create a simple music browser - to begin with, it'll just r...
I'm building a custom explorer treeview that only has my code repository, my visual studio projects folder, and other similar things for quick access, and possibly eventually on-the-fly version comparing. I'd like to be able to right click a folder in this explorer and get a cmd.exe prompt here, like in windows explorer with the powerto...
Hello;-)
I'm new to C# and don't have any programming experience. But I've finish a C# basics.
Now I would like to design a simple tree view by adding parent node and child node.
And here is a part of the code:
I would like to add a second child for the Second node, I'm quite stuck here and don't know what's next.
I would appreciate yo...
Hello!
I need to know the selected node's depth from a ASP.NET Treeview on client side.
Is there anyway to know this?
Thank you!
...
Started to look at the Treeview control.
Is there anyway to tie the Tree View control into a Directory structure on the Web Server using Visual basic?
I have a lot of legacy files, which are updated and added often. Obviously I could code the structure in XML but this would be laborious and hard to train out to the end user.
I guess i...
I got a TreeView and want to display the Data nested (not hierarchically). The first level data is called TaskViewModel, the second level data is ArtifactViewModel. I want the ArtifactViewModel horizontal inside a GroupBox which represents TaskViewModel.
I tried different approaches, this is my last one:
<TreeView Name="tvTasks" ItemsSo...
How do you determine the width of the text in a WPF TreeViewItem at run time?
I need to calculate an offset so I can draw a line from one leaf to the leaf of a different TreeView. All the 'width' properties return a size that is way bigger than the space taken up by the actual text of the node. It must be possible because the Select f...
I have a TreeView and a Multiline Textbox together on the same form in a Windows form. I have drag and drop setup so that I can drag a node from the TreeView over to the textbox and insert text into the textbox (this is working).
I would like to enhance this so that as the mouse is dragged over the textbox some sort of indicator moves ...
Hi,
I got a sample from MSDN which shows how to create a multi column tree view in wpf. But, the example adds the tree items statically. Can you show me how I can bind dynamic data to that multi column tree view with any sample data.
Thanks,
Jithu
...
Hi all,
I have implemented a circular scroll view.
It's working fine , but after sometimes the scroll view delegates are not getting called.
I have attached the code , what is the bug in it ....
//
// MyScrollViewViewController.h
// MyScrollView
//
// Created by Biranchi on 26/05/09.
// Copyright PurpleTalk 2009. All rights reser...
I must be missing something obvious - how can I detect when a node is expanded in a Silverlight TreeView?
...
I've developed an application that populates a treeview from hierachical data in a database.
I've designed it to use lazy-loading so it only gets the child nodes when a node is expanded.
My problem is that obviously I don't know if a node has children unless I make a call to the database and look. Currently I have implemented a dummy c...
I'm working on a Visual Studio Add-in for Visual Studio 2008 that display a treeview that provides a view on content in a server product. The server product contains different types of nodes, and each node has its own type of context menu (right click menu).
For new types of nodes and the actions connected to a node I currently just add...
What is the best way to leave some indicator of which TreeNode is selected in a TreeView on a WinForm?
...
Hi.
I'm looking for an efficient little algorithm to traverse the text property of a .NET treeView node list. When the user is finished adding new nodes and eventually hits save I need to check that the text property (that contains the user entered friendly name) is still unique.
Life would be easy if the treeView key happened to be thi...