<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" />