Пример #1
0
 private void UpdateSelectors()
 {
     diagram.ShowSelectorHandle(false, SelectorPosition.SourcePoint);
     diagram.ShowSelectorHandle(false, SelectorPosition.TargetPoint);
     diagram.ShowSelectorHandle(false, SelectorPosition.Rotator);
     diagram.ShowSelectorHandle(false, SelectorPosition.TopLeft);
     diagram.ShowSelectorHandle(false, SelectorPosition.TopRight);
     diagram.ShowSelectorHandle(false, SelectorPosition.MiddleLeft);
     diagram.ShowSelectorHandle(false, SelectorPosition.MiddleRight);
     diagram.ShowSelectorHandle(false, SelectorPosition.BottomCenter);
     diagram.ShowSelectorHandle(false, SelectorPosition.BottomLeft);
     diagram.ShowSelectorHandle(false, SelectorPosition.BottomRight);
     diagram.ShowSelectorHandle(false, SelectorPosition.TopCenter);
 }
Пример #2
0
 private void Diagram_Loaded(object sender)
 {
     diagram.EnableDrag = false;
     diagram.ShowSelectorHandle(false, SelectorPosition.SourcePoint);
     diagram.ShowSelectorHandle(false, SelectorPosition.TargetPoint);
     diagram.ShowSelectorHandle(false, SelectorPosition.Rotator);
     diagram.ShowSelectorHandle(false, SelectorPosition.TopLeft);
     diagram.ShowSelectorHandle(false, SelectorPosition.TopRight);
     diagram.ShowSelectorHandle(false, SelectorPosition.MiddleLeft);
     diagram.ShowSelectorHandle(false, SelectorPosition.MiddleRight);
     diagram.ShowSelectorHandle(false, SelectorPosition.BottomCenter);
     diagram.ShowSelectorHandle(false, SelectorPosition.BottomLeft);
     diagram.ShowSelectorHandle(false, SelectorPosition.BottomRight);
     diagram.ShowSelectorHandle(false, SelectorPosition.TopCenter);
     diagram.LayoutManager = new LayoutManager()
     {
         Layout = new MindMapLayout()
         {
             MindMapOrientation = Syncfusion.SfDiagram.Android.Orientation.Horizontal,
             HorizontalSpacing  = 70,
         }
     };
     (diagram.LayoutManager.Layout as MindMapLayout).HorizontalSpacing = 70 * MainActivity.Factor;
     if (!(diagram.LayoutManager.Layout as MindMapLayout).EnableFreeForm)
     {
         diagram.LayoutManager.Layout.UpdateLayout();
     }
     SelectedNode = RootNode;
     diagram.Select(RootNode);
     diagram.BringToView(RootNode);
     UpdateTheme();
 }
Пример #3
0
 private void Diagram_Loaded(object sender)
 {
     diagram.EnableDrag = false;
     diagram.ShowSelectorHandle(false, SelectorPosition.SourcePoint);
     diagram.ShowSelectorHandle(false, SelectorPosition.TargetPoint);
     diagram.ShowSelectorHandle(false, SelectorPosition.Rotator);
     diagram.ShowSelectorHandle(false, SelectorPosition.TopLeft);
     diagram.ShowSelectorHandle(false, SelectorPosition.TopRight);
     diagram.ShowSelectorHandle(false, SelectorPosition.MiddleLeft);
     diagram.ShowSelectorHandle(false, SelectorPosition.MiddleRight);
     diagram.ShowSelectorHandle(false, SelectorPosition.BottomCenter);
     diagram.ShowSelectorHandle(false, SelectorPosition.BottomLeft);
     diagram.ShowSelectorHandle(false, SelectorPosition.BottomRight);
     diagram.ShowSelectorHandle(false, SelectorPosition.TopCenter);
     diagram.LayoutManager = new LayoutManager()
     {
         Layout = new MindMapLayout()
         {
             MindMapOrientation = Syncfusion.SfDiagram.iOS.Orientation.Horizontal,
             HorizontalSpacing  = 70,
         }
     };
     diagram.LayoutManager.Layout.UpdateLayout();
     diagram.Select(RootNode);
     diagram.BringToView(RootNode);
 }