Root |_ Groups |_Rules |_Conditions |_ Actions |_ ObjectsI have set up the necessesary HierarchicalDataTemplates for the Groups, Rules, and Conditions, and they show fine in the TreeView.
<!-- Condition --> <HierarchicalDataTemplate DataType="{x:Type local:RuleCondition}" ItemsSource="{Binding Path=Actions, Mode=TwoWay}"> <StackPanel Orientation="Horizontal"> <Image Source="/RulesEngineUI;component/Media/bluedot.png" Height="8" Width="8" Margin="0,0,3,0"/> <TextBlock Margin="0,0,5,0" FontWeight="Bold">Condition:</TextBlock> <TextBlock> <Hyperlink Name="Link" Style="{StaticResource LinkStyle}" Click="Link_Click"> <TextBlock Text="{Binding Path=Operation}"></TextBlock> </Hyperlink> </TextBlock> </StackPanel> </HierarchicalDataTemplate> <!-- Action --> <DataTemplate DataType="{x:Type local:RuleAction}"> <StackPanel Orientation="Horizontal"> <TextBlock Margin="0,0,5,0" FontWeight="Bold">Action:</TextBlock> <TextBlock> <Hyperlink Name="Link" Style="{StaticResource LinkStyle}" Click="Link_Click"> <TextBlock Text="{Binding Path=ActionField}"></TextBlock> </Hyperlink> </TextBlock> </StackPanel> </DataTemplate> <!-- Object --> <DataTemplate DataType="{x:Type local:RuleObject}"> <StackPanel Orientation="Horizontal"> <TextBlock Margin="0,0,5,0" FontWeight="Bold">Object:</TextBlock> <TextBlock> <Hyperlink Name="Link" Style="{StaticResource LinkStyle}" Click="Link_Click"> <TextBlock Text="{Binding Path=Field}"></TextBlock> </Hyperlink> </TextBlock> </StackPanel> </DataTemplate>If you look at the Condtion HierarchicalDataTemplate you see that it refers to actions. How do I tell the tree to also display the Objects