private void SetLayoutControlView() { var layoutTab = new TabButton() { Text = "Layout", }; var layoutContent = new TabContent() { Layout = new LinearLayout() { LinearOrientation = LinearLayout.Orientation.Vertical, CellPadding = new Size2D(0, 40), }, WidthSpecification = LayoutParamPolicies.MatchParent, HeightSpecification = LayoutParamPolicies.MatchParent, }; LayoutType selectedLayoutType = LayoutType.LinearLayout; var layoutType = new LayoutTypeView(); layoutType.LayoutType = selectedLayoutType; layoutType.LayoutTypeChanged += (object sender, LayoutTypeChangedEventArgs args) => { if (args.LayoutType == LayoutType.LinearLayout) { if (linearLayoutControlView == null) { linearLayoutControlView = new LinearLayoutControlView(); } } }; layoutContent.Add(layoutType); linearLayoutControlView = new LinearLayoutControlView(); layoutContent.Add(linearLayoutControlView); tabView.AddTab(layoutTab, layoutContent); }
private void SetObjectControlView() { var viewTab = new TabButton() { Text = "View", }; var viewContent = new TabContent() { WidthSpecification = LayoutParamPolicies.MatchParent, HeightSpecification = LayoutParamPolicies.MatchParent, }; objectControlView = new ObjectControlView(); viewContent.Add(objectControlView); tabView.AddTab(viewTab, viewContent); }