c# - XAML Treeview, how to displayed nodes horizontally instead of vertically -


I am something new in XML and I try to try to display the previewview rather than horizontally vertically I.e.

Header 1 item 1 item 2 items 3 headers 2 item 4

instead of

 header 1 item 1 item 2 item 3 header 2 item 4 

It's not really as simple as it seems, I was able to move the headings horizontally ...

Le code

  & lt; Grid & gt; & Lt; TreeView ItemsSource = "{Binding Kids}" & gt; & Lt; TreeView.Resources & gt; & Lt; Hierarchical dataTypeplate dataType = "{x: type local: ApplicationListViewModel}" item source = "{binding child}" & gt; & Lt; StackPanel Orientation = "Horizontal" & gt; & Lt; Text block text = "{binding title}" /> & Lt; / StackPanel & gt; & Lt; / HierarchicalDataTemplate & gt; & Lt; DataTemplate DataType = "{x: type local: ApplicationViewModel}" & gt; & Lt; StackPanel Orientation = "Horizontal" & gt; & Lt; ListView & gt; & Lt; Button & gt; & Lt; Image source = "{binding image}" /> & Lt; / Button & gt; & Lt; / ListView & gt; & Lt; / StackPanel & gt; & Lt; / DataTemplate & gt; & Lt; /TreeView.Resources> & Lt; / TreeView & gt;  



If it helps to know what I'm trying to accomplish My code, then basically, is trying to organize the applications in a series of categories. I

I have the data structure

 Application Store Application List (1- > Many) Applications (1-> many) 

is a codeproject that explains how to do this. .. hope it helps :)


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -