예제 #1
0
        public static FolderBrowser Create()
        {
            FolderBrowser temp = new FolderBrowser();

            temp.Height        = 85;
            temp.Width         = 1920;
            temp.Canvas        = (CanvasElement)Document.CreateElement("canvas");
            temp.Canvas.Width  = temp.Width;
            temp.Canvas.Height = temp.Height;
            //temp.Canvas.Style.MarginBottom = "0";
            temp.Setup();
            temp.LoadImages();

            return(temp);
        }
예제 #2
0
        public static FolderBrowser Create()
        {
            FolderBrowser temp = new FolderBrowser();

            temp.Height = 85;
            temp.Width = 1920;
            temp.Canvas = (CanvasElement)Document.CreateElement("canvas");
            temp.Canvas.Width = temp.Width;
            temp.Canvas.Height = temp.Height;
            //temp.Canvas.Style.MarginBottom = "0";
            temp.Setup();
            temp.LoadImages();

            return temp;
        }
예제 #3
0
        public void CreateExplorerUI()
        {
            if (Explorer == null)
            {
                Explorer = FolderBrowser.Create();

                DivElement div = (DivElement)Document.GetElementById("UI");

                div.InsertBefore(Explorer.Canvas);

                ExploreRoot = new Folder();
                ExploreRoot.LoadFromUrl("http://www.worldwidetelescope.org/wwtweb/catalog.aspx?W=NewExploreRoot",
                    delegate { Explorer.AddItems(WWTControl.ExploreRoot.Children); Explorer.Refresh(); });
            }
        }