or
01.<telerik:RadTreeMap x:Name="TreeMap" Grid.Row="0" Grid.Column="2"02. ClipToBounds="True" >03. 04. <telerik:RadTreeMap.LayoutStrategy>05. <telerik:SliceDiceStrategy Orientation="Horizontal" />06. </telerik:RadTreeMap.LayoutStrategy>07. 08. <telerik:RadTreeMap.TypeDefinitions>09. <telerik:TypeDefinition TargetTypeName="ModelInfo"10. ValuePath="Value" ChildrenPath="Children" LabelPath="Name"11. ItemStyle="{StaticResource IcicleStyle}" />12. 13. <telerik:TypeDefinition TargetTypeName="GroupInfo"14. ValuePath="Value" ChildrenPath="Children" LabelPath="Name"15. ItemStyle="{StaticResource IcicleStyle}" />16. 17. <telerik:TypeDefinition TargetTypeName="EventInfo"18. ValuePath="Value" LabelPath="Name"19. ItemStyle="{StaticResource IcicleStyle}" />20. 21. </telerik:RadTreeMap.TypeDefinitions>22. 23.</telerik:RadTreeMap>1.<Style x:Key="IcicleStyle" TargetType="telerik:RadTreeMapItem" >2. <Setter Property="Control.Background" Value="White" />3. <Setter Property="MaxHeight" Value="50" />4. <Setter Property="FontFamily" Value="Segoe UI" />5. <Setter Property="FontWeight" Value="SemiBold" />6. <Setter Property="Margin" Value="-1" />7. <Setter Property="Padding" Value="0" />8.</Style>private void BindTreeToZipCodes(RadTreeViewItem parentNode) { if (parentNode == null) { trvZipCodes.Items.Clear(); List<State> _states = StateService.GetActive(); foreach (State _state in _states) { RadTreeViewItem node = new RadTreeViewItem() { Header = _state.StateDescription }; node.DefaultImageSrc = "Resources/folder.png"; node.Tag = "State"; if (_state.StateCode == _selectedDealer.StateCode) { node.IsExpanded = true; node.IsSelected = true; _selectedPath = _state.StateDescription; } else { node.IsExpanded = false; } trvZipCodes.Items.Add(node); //call recursively to add zip parts BindTreeToZipCodes(node); } } else //parent node is not null - what level is it { if (((string)parentNode.Tag) == "State") { List<ZipCodePart> _zipParts = ZipCodePartService.GetForState(parentNode.Header.ToString().Substring(0, 2)); foreach (ZipCodePart _zipPart in _zipParts) { RadTreeViewItem node = new RadTreeViewItem() { Header = _zipPart.ZipPart }; node.Tag = "ZipPart"; parentNode.Items.Add(node); } if (parentNode.IsSelected == true) { _selectedPath += " | " + _zipParts[_zipParts.Count - 1].ZipPart; } } } }BindTreeToZipCodes(null); trvZipCodes.BringPathIntoView(_selectedPath);<UserControl x:Class="GanttView.GanttControl" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:vm="clr-namespace:GanttViewModel;assembly=GanttViewModel" DataContext="{DynamicResource GanttViewModel}" mc:Ignorable="d" d:DesignHeight="1024" d:DesignWidth="1280"> <UserControl.Resources> <ResourceDictionary> <vm:GanttControlViewModel x:Key="GanttViewModel"/> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="pack://application:,,,/GanttView;component/Themes/System.Windows.xaml"/> <ResourceDictionary Source="pack://application:,,,/GanttView;component/Themes/Telerik.Windows.Controls.xaml"/> <ResourceDictionary Source="pack://application:,,,/GanttView;component/Themes/Telerik.Windows.Controls.GanttView.xaml"/> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </UserControl.Resources>