public override void LayoutSubviews() { base.LayoutSubviews(); diagramView.LayoutSubviews(); diagram.LayoutSubviews(); HeaderBar.Frame = new CGRect(0, 0, Frame.Width, 60); }
public override void LayoutSubviews() { base.LayoutSubviews(); diagram.LayoutSubviews(); //diagram.EnableSelectors = false; UpdateSelectors(); //Create Node }
public override void LayoutSubviews() { base.LayoutSubviews(); parentView.Frame = new CGRect(0, 0, this.Frame.Width, this.Frame.Height); diagram.BeginNodeRender += Dia_BeginNodeRender; diagram.BeginNodeLayout += Dia_GetLayoutInfo; diagram.ItemLongPressed += Dia_ItemLongPressed; diagram.BackgroundColor = UIColor.White; diagram.EnableSelectors = false; diagram.NodeClicked += Dia_NodeClicked; diagram.Loaded += Dia_Loaded; //Initialize Method datamodel = new DataModel(); datamodel.Data(); //To Represent DataSourceSttings Properties DataSourceSettings settings = new DataSourceSettings(); settings.ParentId = "ReportingPerson"; settings.Id = "Name"; settings.DataSource = datamodel.employee; diagram.DataSourceSettings = settings; //To Represent LayoutManager Properties diagram.LayoutManager = new LayoutManager() { Layout = new DirectedTreeLayout() { Type = LayoutType.Organization, HorizontalSpacing = 35, } }; for (int i = 0; i < diagram.Connectors.Count; i++) { diagram.Connectors[i].TargetDecoratorType = DecoratorType.None; diagram.Connectors[i].Style.StrokeBrush = new SolidBrush(UIColor.FromRGB(127, 132, 133)); diagram.Connectors[i].Style.StrokeWidth = 1; } //Set width and height for diagram diagram.Width = (float)parentView.Frame.Width; diagram.Height = (float)parentView.Frame.Height; parentView.AddSubview(diagram); diagram.LayoutSubviews(); this.AddSubview(parentView); foreach (var view in this.Subviews) { verticalLabel.Frame = new CGRect(this.Frame.X + 10, 0, PopoverSize.Width - 20, 30); verticalbutton.Frame = new CGRect(this.Frame.X + 10, 40, PopoverSize.Width - 20, 30); horizontalbutton.Frame = new CGRect(this.Frame.X + 10, 80, PopoverSize.Width - 20, 30); selectionPicker1.Frame = new CGRect(0, PopoverSize.Height / 2, PopoverSize.Width, PopoverSize.Height / 3); doneButton.Frame = new CGRect(0, PopoverSize.Height / 2.5, PopoverSize.Width, 40); } }
public override void LayoutSubviews() { base.LayoutSubviews(); //Set diagram width and height diagram.Width = (float)Frame.Width; diagram.Height = (float)Frame.Height; diagram.EnableSelectors = false; this.AddSubview(diagram); diagram.LayoutSubviews(); diagram.Loaded += Diagram_Loaded; }
public override void LayoutSubviews() { base.LayoutSubviews(); //Set diagram width and height diagram.PageSettings.PageWidth = (float)Frame.Width; diagram.PageSettings.PageHeight = (float)Frame.Height; diagram.LayoutSubviews(); //diagram.EnableSelectors = false; UpdateSelectors(); //Create Node }