Ejemplo n.º 1
0
        private static void AddSection1(IApplicationLoader p)
        {
            var s = new Section().ToSectionConcept();

            s.Header = "Syntax1";

            s.Content = VisualStudioView.DemoTree().Container;
            s.Content.style.border = "1px solid gray";


            s.IsExpanded = false;
            s.Target.Container.style.backgroundColor = "#efefef";
            s.Target.Container.AttachTo(p.Content);
        }
Ejemplo n.º 2
0
        private static void AddSection5(Action <string, IHTMLDiv> AddSection)
        {
            var Content = new IHTMLDiv().With(
                k =>
            {
                k.style.border   = "1px solid gray";
                k.style.position = ScriptCoreLib.JavaScript.DOM.IStyle.PositionEnum.relative;
                k.style.width    = "100%";
                k.style.height   = "6em";
            }
                );



            var hh = new HorizontalSplit
            {
                Minimum        = 0.05,
                Maximum        = 0.95,
                Value          = 0.7,
                RightContainer = VisualStudioView.DemoTree().Container,
            };

            hh.Split.LeftScrollable = new IHTMLDiv();

            hh.Split.LeftScrollable.style.position = ScriptCoreLib.JavaScript.DOM.IStyle.PositionEnum.absolute;
            hh.Split.LeftScrollable.style.width    = "100%";
            hh.Split.LeftScrollable.style.height   = "100%";


            var edit = VisualStudioView.CreateEditor();

            edit.AttachTo(hh.Split.LeftScrollable);

            hh.Container.AttachTo(Content);

            AddSection(
                "Horizontal split with tree",
                Content
                );
        }
Ejemplo n.º 3
0
        private static void AddSection7(Action <string, IHTMLDiv> AddSection)
        {
            var Content = new IHTMLDiv().With(
                k =>
            {
                k.style.border   = "1px solid gray";
                k.style.position = ScriptCoreLib.JavaScript.DOM.IStyle.PositionEnum.relative;
                k.style.width    = "100%";
                k.style.height   = "15em";
            }
                );



            var ToolboxSplit = new HorizontalSplit
            {
                Minimum = 0.05,
                Maximum = 0.5,
                Value   = 0.15,
            };

            var ToolboxContainer = ToolboxSplit.LeftContainer;

            Action <string, string> AddGroup =
                (Header, Title) =>
            {
                #region group
                {
                    var s = new Section().ToSectionConcept();

                    s.Target.Header.style.marginLeft = "1em";
                    s.Header       = Header;
                    s.Header.title = Title;

                    s.Content.Clear();

                    VisualStudioView.CreateToolboxTo(s.Content);

                    s.IsExpanded = false;
                    s.Target.Container.AttachTo(ToolboxContainer);
                }
                #endregion
            };

            AddGroup("HTML Components", "For example a section or a split view");
            AddGroup("Flash Components", "For example an empty sprite or a visualization");
            AddGroup("Java Applets", "For example a calculator form or a visualization");

            var EditorTreeSplit = new HorizontalSplit
            {
                Minimum = 0.5,
                Maximum = 0.95,
                Value   = 0.6,
            };

            EditorTreeSplit.Split.LeftScrollable = VisualStudioView.CreateEditor().WithinContainer();
            EditorTreeSplit.Split.RightContainer = VisualStudioView.DemoTree().Container;

            ToolboxSplit.Split.RightScrollable = EditorTreeSplit.Container;

            ToolboxSplit.Container.AttachTo(Content);

            AddSection(
                "Horizontal split with tree and sub split reversed",
                Content
                );
        }