Exemple #1
0
 private void prepertToTreeSettings()
 {
     currentLayoutSettings = new Telerik.Windows.Diagrams.Core.TreeLayoutSettings()
     {
         HorizontalSeparation         = 120d,
         VerticalSeparation           = 180d,
         UnderneathVerticalTopOffset  = 50d,
         UnderneathHorizontalOffset   = 230d,
         UnderneathVerticalSeparation = 40d,
         VerticalDistance             = 10d,
     };
 }
Exemple #2
0
        public static void InitiateGraph(Telerik.WinControls.UI.RadDiagram radDiagram1)
        {
            radDiagram1.BackgroundGrid.Visibility     = ElementVisibility.Hidden;
            radDiagram1.BackgroundPageGrid.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
            radDiagram1.IsSnapToGridEnabled           = false; radDiagram1.IsSnapToItemsEnabled = false;
            radDiagram1.SetLayout(Telerik.Windows.Diagrams.Core.LayoutType.Tree);
            radDiagram1.IsInformationAdornerVisible = false;
            TreeLayoutSettings currentLayoutSettings = new Telerik.Windows.Diagrams.Core.TreeLayoutSettings()
            {
                HorizontalSeparation         = 120d,
                VerticalSeparation           = 180d,
                UnderneathVerticalTopOffset  = 50d,
                UnderneathHorizontalOffset   = 230d,
                UnderneathVerticalSeparation = 40d,
                VerticalDistance             = 10d,
            };

            radDiagram1.SetLayout(Telerik.Windows.Diagrams.Core.LayoutType.Tree, currentLayoutSettings);
        }