Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<FOLDER title="21 00-MAINTENANCE " key="MMEL_N_NP02023" abbr="00">
<ITEM title="TEMP CTL 1(2) MAINTENANCE " key="MMEL_N_00007461">
<TOPIC title="21-00-04 TEMP CTL 1(2) MAINTENANCE " effectivity-group="1">
<reference parameter="DU/00007461.0001001_css.mtd"/>




i want in tree view like

-21 00-MAINTENANCE
-TEMP CTL 1(2) MAINTENANCE
-(21-00-04 TEMP CTL 1(2) MAINTENANCE + DU/00007461.0001001_css.mtd)

What I have tried:

my code :

<HierarchicalDataTemplate DataType="TOPIC" ItemsSource="{Binding XPath=./*}">
<StackPanel Orientation="Horizontal" >

<TextBlock Margin="5,0,0,0" Text="{Binding XPath=@title}" />



<HierarchicalDataTemplate DataType="reference" ItemsSource="{Binding XPath=./*}">
<StackPanel Orientation="Horizontal" >



<TextBlock Margin="5,0,0,0" Text="{Binding XPath=@parameter}" ToolTip="{Binding XPath=@parameter}" Name="txtRef" />
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900