Show tree 'lines' in WPF [duplicate] - wpf

Is there a way to make the treeview show lines connecting items when we expand them?
Thanks!

You'd have to replace TreeViewItem control template to achive that. Look at this thread on MSDN there should be all information you need.

Related

WPF Datagrid Inside WrapPanel?

I have a lot of columns in my DataGrid and would like to be able to put it into a wrap panel so it has the ability to resize while still displaying all of it's contents. Here's a visual example:
No WrapPanel
With WrapPanel (This is just two DataGrids for representation)
Is there any way to achieve this effect?
No, you can't get the DataGrid to wrap like you want it to.
To achieve the effect that you want would require creating a custom control.

Multiple lines of tab in Avalon Dock

I'm using AvalonDock 2.0 as a tab control manager, however i have not come across a way to allow multiple lines of tabs (when needed), or a way to show that there are hidden tabs in the background.
Can the multiple lines of tab be accomplished through a template or style? or am i missing out on some basic properties that i didn't know?
The answer can be found at the Xceed forum here: https://xceed.com/forums/topic/display-multiple-lines-of-tabs-in-avalondock-dockmanager/
The idea is to override the template of LayoutDocumentPaneControl and provide an alternative implementation, then assign this new template to the DockingManager via its DocumentPaneControlStyle property.

WPF Listview Gridview styling column header presenter

I am making a style for gridview in WPF which consists of several parts, currently I am stuck with the column headers part
I made a style for GridViewColumnHeader but now I need a style for its container
is there a part similar to "DataGridColumnHeadersPresenter" which is a wrapper for all of the columns?
Any help where to find the parts of the control? I want to find the name of that part and the default template for it.
Thank you
Another reason why Snoop is very good.
You get Snoop to identify the element your looking for
Guess it's GridViewHeaderRowPresenter what your looking for.

Expander in DataGrid (Silverlight)

I have a DataGrid and I need to add an Expander control dynamically to group few rows based on some conditions... Can anyone help me in this... I am completely new to Silverlight :(
Found the answer, I have created a separate column for the expander and managed to display it when my condition is satisfied. It is not dynamic though, but solved the purpose. :)
Dynamically--not sure what you want. I've done expanders statically. My two cents: keep it simple and don't try and do too much. If by dynamically you are taking about Master/Details data gridview, that can be done by XAML and loading the gridview with an ObservableCollection class (search the net). Also search for PagedCollectionView and .Visibility properties for controls. If you want to add controls to a StackPanel, dynamically, search the net for .Children.Remove methods.
Good luck, but as a beginner you are probably trying to do too much IMO.

WPF: ListView as treeview (with GroupItem)

Is there a way to render a ListView (using Group Item) as a treeview? Maybe hierarchical template can be useful.
BTW, which WPF control was it build (TreeView or ListView)?:
Undefined Control
This is what you may be lookking for. Although there is another similar thread awating reply... WPF DataGrid with TreeView type hierarchy
I believe is a TreeView(Custom One) if you would like to see an example of treeView see this... thread..

Resources