Esempio n. 1
0
        //
        public DockableControl(string name)
            : base(name)
        {
            _launcher = new Launcher("launcher"+name);
            _launcher.Remote = this;
            PageManager.Context.dockModule.AddChild(_launcher);
            _header = new Label("Header");
            _headerContainer = new BaseControl("HeaderContainer");

            _headerContainer.CssClass = "ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix";
            _header.CssClass = "ui-dialog-title";
            CssClass = "ui-dialog ui-widget ui-widget-content ui-corner-all";

            draggableOptions = new DraggableOptions()
            {
                Handle = _headerContainer.ControlContainer,
                ZIndex = 10,
                Scope = "draggable",
                Containment = PageManager.Context.panelLayout.ControlContainer

            };
            resizableOptions = new ResizableOptions()
            {
                MinHeight = 100,
                MinWidth = 100,
                MaxHeight = Window.InnerHeight,
                MaxWidth = Window.InnerWidth
            };

            _headerContainer.AddChild(_header);
            AddChild(_headerContainer);
        }
Esempio n. 2
0
 public Launcher(string name)
     : base(name)
 {
     lblDisplay = new Label("launcherLabel");
     Height = "40px";
     Width = "50px";
     Margin = "5px";
     Float = "left";
     lblDisplay.Border = "2px solid #000";
 }
Esempio n. 3
0
        public MessageControl(string name)
            : base(name)
        {
            //_avatar = (ImageElement)Document.CreateElement("img");
            _username = new Label("username");
            _message = new Label("message");

            _message.CssClass = "message";
            _username.CssClass = "username";
            //_avatar.CssClass = "avatar";

            //ControlContainer.AppendChild(_avatar);
            AddChild(_username);
            AddChild(_message);
            CssClass = "chatmessageContainer";
        }
Esempio n. 4
0
        public TreeNode()
            : base("node")
        {
            ControlContainer = Document.CreateElement("li");
            Name = Guid.CreateGuid();
            lblImage = new Label("lblImage", "span");
            lblImage.CssClass = "ui-icon ui-icon-carat-1-e";

            AddChild(lblImage);

            lblDetail = new Label("lblDetail");
            lblDetail.CssClass = "label";

            AddChild(lblDetail);

            InnerTree = new Controls.Tree("InnerTree");
            AddChild(InnerTree);
        }
Esempio n. 5
0
 public ConsoleView(string name)
     : base(name)
 {
     lblMessages = new Label("lblMessages");
     AddChild(lblMessages);
 }