Пример #1
0
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public override System.Windows.Forms.Control CreateControlPane()
        {
            //create an ElementHost
              ElementHost eh = new ElementHost();
              eh.AutoSize = true;
              eh.Child = new Navis2JiraWin();
              eh.CreateControl();

              //return the ElementHost
              return eh;
        }
Пример #2
0
        public override Control CreateControlPane()
        {
            ElementHost element = new ElementHost()
            {
                AutoSize = true,
                Child    = Bootstrapper.Instance.MainView
            };

            element.CreateControl();

            return(element);
        }
Пример #3
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public override System.Windows.Forms.Control CreateControlPane()
        {
            //create an ElementHost
            ElementHost eh = new ElementHost();

            eh.AutoSize = true;
            eh.Child    = new Navis2JiraWin();
            eh.CreateControl();

            //return the ElementHost
            return(eh);
        }
Пример #4
0
        public override Control CreateControlPane()
        {
            //create and ElementHost
            ElementHost eh = new ElementHost();

            //assign the control
            eh.AutoSize = true;
            eh.Child    = new WPFElementPropertiesControl();

            eh.CreateControl();

            return(eh);
        }
Пример #5
0
        public override Control CreateControlPane()
        {
            //create an ElementHost
            ElementHost eh = new ElementHost();

            //assign the control
            eh.AutoSize = true;
            eh.Child    = new LinkNavigatorWPFCtr();
            eh.CreateControl();


            //return the ElementHost
            return(eh);
        }
Пример #6
0
        public override Control CreateControlPane()
        {
            var mainview = new Main_View();

            ElementHost element = new ElementHost()
            {
                AutoSize = true,
                Child    = mainview
            };

            element.CreateControl();

            return(element);
        }
Пример #7
0
        public override Control CreateControlPane()
        {
            //create an ElementHost
            ElementHost eh = new ElementHost();

            //assign the control
            eh.Dock           = DockStyle.Top;
            eh.Anchor         = AnchorStyles.Top;
            ns                = new NavisWindow();
            eh.Child          = ns;
            eh.HandleCreated += eh_HandleCreated;
            eh.CreateControl();

            //return the ElementHost
            return(eh);
        }
Пример #8
0
    public override Control CreateControlPane()
    {
      //create an ElementHost
      ElementHost eh = new ElementHost();

      //assign the control
      //eh.Anchor = AnchorStyles.Top;
      eh.Dock = DockStyle.Top;
      eh.Anchor = AnchorStyles.Top;
      ns = new NavisWindow();
      eh.Child = ns;
      eh.HandleCreated += eh_HandleCreated;
      eh.CreateControl();
        
      //return the ElementHost
      return eh;
    }
Пример #9
0
        public override System.Windows.Forms.Control CreateControlPane()
        {
            ResourceDictionary myResourceDictionary = new ResourceDictionary();

            myResourceDictionary.Source = new Uri("/TUM.CMS.VplControl;component/Themes/Generic.xaml", UriKind.Relative);

            //System.Windows.Application.Current.Resources.MergedDictionaries.Add(myResourceDictionary);
            Autodesk.Navisworks.Gui.Common.View.WPFApp.Current.Resources.MergedDictionaries.Add(myResourceDictionary);
            // Autodesk.Navisworks.Gui.Common.View.WPFApp.ResourceAssembly = GetAssemblyByName("TUM.CMS.VplControl") ;
            //create an ElementHost
            ElementHost eh = new ElementHost();

            ////assign the control
            eh.AutoSize = true;
            eh.Child    = new MainWindow();

            eh.CreateControl();
            eh.BringToFront();
            //return the ElementHost
            return(eh);
        }