HierarchyNavigator


Display a Window containing a HierarchyNavigator



XAML


∇   xaml←HierarchyNavigatorXAML
⍝ XAML for the HierarchyNavigator example
 xaml←⊂'<Window'
 xaml,←⊂'    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"'
 xaml,←⊂'    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"'
 xaml,←⊂'    xmlns:sftools="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=SyncFusion.Tools.WPF"'
 xaml,←⊂'    SizeToContent="WidthandHeight" >'
 xaml,←⊂'    <StackPanel>'
 xaml,←⊂'        <sftools:HierarchyNavigator Name="hinav">'
 xaml,←⊂'        </sftools:HierarchyNavigator>'
 xaml,←⊂'    </StackPanel>'
 xaml,←⊂'</Window>'


Code


∇  HierarchyNavigator;⎕IO;⎕ML;⎕USING;xaml;item;navitem;Item1;Item2;Item3;Item31;Item32
⍝ Simple HierarchyNavigator example
 ⎕IO ⎕ML←0 3
 xaml←HierarchyNavigatorXAML
 window←#.UTIL.WPF.LoadXaml xaml(⊂'SyncTools')
 window_hinav←window.FindName⊂'hinav'
 ⎕USING←,⊂'Syncfusion.Windows.Tools.Controls,Syncfusion/4.5/Syncfusion.tools.WPF.dll'
 Item1←⎕NEW HierarchyNavigatorItem
 Item2←⎕NEW HierarchyNavigatorItem
 Item3←⎕NEW HierarchyNavigatorItem
 Item31←⎕NEW HierarchyNavigatorItem
 Item32←⎕NEW HierarchyNavigatorItem
 Item1.Content←'Syncfusion'
 Item2.Content←'Tools'
 Item3.Content←'WPF'
 Item31.Content←'ToolBar'
 Item32.Content←'HierarchyNavigator'
 Item1.Items.Add Item2
 Item2.Items.Add Item3
 Item3.Items.Add Item31
 Item3.Items.Add Item32
 window_hinav.Items.Add Item1
 {}window.ShowDialog


The 'SyncTools' argument to #.UTIL.LoadXAML has the effect of adding

'Syncfusion.Windows.Tools.Controls,Syncfusion/4.5/Syncfusion.Tools.WPF.dll'

 to the ⎕USING list of
LoadXAML

Not the cleverest of examples, but it replicates part of an example posted to the Syncfusion Forum

Operation


       #.HierarchyNavigator.HierarchyNavigator

Unresolved Issues


This really needs to be data-driven and have some event callbacks added