Inheritance: System.Web.UI.UserControl
コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        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);
        }