protected override void OnViewControlsCreated() { base.OnViewControlsCreated(); IsObjectChanged = false; DetailView DetailView = (View as DetailView); view = new XafBootstrapView(); view.IsRootView = true; CustomPanel cp = new CustomPanel(); IList <Control> ctrls = new List <Control>(); foreach (Control control in (DetailView.Control as Control).Controls) { ctrls.Add(control); } foreach (var control in ctrls) { cp.Controls.Add(control); } view.View = DetailView; view.ControlToRender = cp; (View.Control as Control).Controls.Add(view); }
protected override void OnViewControlsCreated() { base.OnViewControlsCreated(); Frame.GetController <DashboardCustomizationController>().OrganizeDashboardAction.Active["CustomDashboardViewRootController"] = false; IsObjectChanged = false; DashboardView DetailView = (View as DashboardView); view = new XafBootstrapView(); view.IsRootView = true; CustomPanel cp = new CustomPanel(); IList <Control> ctrls = new List <Control>(); foreach (Control control in (DetailView.Control as Control).Controls) { ctrls.Add(control); } foreach (var control in ctrls) { cp.Controls.Add(control); } view.View = DetailView; view.ControlToRender = cp; (View.Control as Control).Controls.Add(view); }
protected override void OnViewControlsCreated() { base.OnViewControlsCreated(); Frame.GetController<DashboardCustomizationController>().OrganizeDashboardAction.Active["CustomDashboardViewRootController"] = false; IsObjectChanged = false; DashboardView DetailView = (View as DashboardView); view = new XafBootstrapView(); view.IsRootView = true; CustomPanel cp = new CustomPanel(); IList<Control> ctrls = new List<Control>(); foreach (Control control in (DetailView.Control as Control).Controls) ctrls.Add(control); foreach (var control in ctrls) cp.Controls.Add(control); view.View = DetailView; view.ControlToRender = cp; (View.Control as Control).Controls.Add(view); }
protected override void OnViewControlsCreated() { base.OnViewControlsCreated(); IsObjectChanged = false; DetailView DetailView = (View as DetailView); view = new XafBootstrapView(); view.IsRootView = true; CustomPanel cp = new CustomPanel(); IList<Control> ctrls = new List<Control>(); foreach (Control control in (DetailView.Control as Control).Controls) ctrls.Add(control); foreach (var control in ctrls) cp.Controls.Add(control); view.View = DetailView; view.ControlToRender = cp; (View.Control as Control).Controls.Add(view); }