Esempio n. 1
0
        //public Panel pnlTopBar { get; set; }
        public PanelLayout(string name)
            : base(name)
        {
            pnlLeftSide = new Panel("pnlLeftSide");
            pnlRightSide = new Panel("pnlRightSide");
            pnlMiddle = new Panel("pnlMiddle");
            //pnlTopBar = new Panel("pnlTopBar");
            pnlBottom = new Panel("pnlBottom");
            Window.AddEventListener("resize", new ElementEventListener(Resize));

            Position = "absolute";
            PointerEvents = "none";

            Height = (Window.InnerHeight - 50 ) + "px";
            Width = Window.InnerWidth + "px";

            //AddChild(pnlTopBar);
            AddChild(pnlLeftSide);
            AddChild(pnlRightSide);
            AddChild(pnlMiddle);
            AddChild(pnlBottom);
        }
Esempio n. 2
0
        public override void PreRender()
        {
            CssClass = "startmenu";
            Height = "40px";
            Width = "40px";
            Margin = "5px";
            Background = "#1d74bb";
            Float = "left";

            OnClick(startmenu_Click);
            _menu = new Panel("Menu");

            _menu.Float = "left";
            _menu.CssClass = _menu.CssClass + " menu";
            _menu.Top = "50px";
            _menu.Height = (Window.InnerHeight - 50) + "px";
            _menu.Width = Window.InnerWidth + "px";
            _menu.Visible = false;
            _menu.Background = "#16499a";
            _menu.zIndex = "9999";
            Parent.AddChild(_menu);
        }