T
Thorsten Tarrach
Hi,
I'm binding my Treeview to an XML document that has less than 100 nested Log
nodes. But I still get this error. If the depth of the XML is 100, how can
the visual tree be 255 nodes deep?
The datatemplate for my Treeview looks like this:
<HierarchicalDataTemplate x:Key="LogEntry" DataType="Log"
ItemsSource="{Binding XPath=Log}">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding XPath=@Procedure}">
<TextBlock.Foreground>
<SolidColorBrush>
<SolidColorBrush.Color>
<MultiBinding Converter="{StaticResource logcolour}">
<Binding XPath="@Result"/>
</MultiBinding>
</SolidColorBrush.Color>
</SolidColorBrush>
</TextBlock.Foreground>
</TextBlock>
<TextBlock Text=": "/>
<TextBlock Text="{Binding XPath=@ShortText}"/>
</StackPanel>
</HierarchicalDataTemplate>
Thanks, Thorsten
I'm binding my Treeview to an XML document that has less than 100 nested Log
nodes. But I still get this error. If the depth of the XML is 100, how can
the visual tree be 255 nodes deep?
The datatemplate for my Treeview looks like this:
<HierarchicalDataTemplate x:Key="LogEntry" DataType="Log"
ItemsSource="{Binding XPath=Log}">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding XPath=@Procedure}">
<TextBlock.Foreground>
<SolidColorBrush>
<SolidColorBrush.Color>
<MultiBinding Converter="{StaticResource logcolour}">
<Binding XPath="@Result"/>
</MultiBinding>
</SolidColorBrush.Color>
</SolidColorBrush>
</TextBlock.Foreground>
</TextBlock>
<TextBlock Text=": "/>
<TextBlock Text="{Binding XPath=@ShortText}"/>
</StackPanel>
</HierarchicalDataTemplate>
Thanks, Thorsten