wpf - TreeView with multiple ItemSources -


i need show items 2 different sources in tree view. how can achieve that?

details: item source a: item source have header, n children, each child can have 32 sub children.

item source b: item source have header , n children.

i need support context menu operations on children , sub children.

what should xaml code , should structure of classes?

my current structure has 1 itemsource , binding code looks this

<treeview.itemtemplate>   <hierarchicaldatatemplate itemssource="{binding slash}">          <stackpanel orientation="horizontal">             <textblock text="{binding name}"/>          </stackpanel>     <hierarchicaldatatemplate.itemtemplate>        <datatemplate datatype="{x:type dt:slash}">            <stackpanel orientation="horizontal">                <textblock text="{binding fullname}"/>            </stackpanel>        </datatemplate>     </hierarchicaldatatemplate.itemtemplate>   </hierarchicaldatatemplate> </treeview.itemtemplate> 

you can take @ answer posted in this topic if have question, ask ;)


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -