/// <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; }
public override Control CreateControlPane() { ElementHost element = new ElementHost() { AutoSize = true, Child = Bootstrapper.Instance.MainView }; element.CreateControl(); return(element); }
/// <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); }
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); }
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); }
public override Control CreateControlPane() { var mainview = new Main_View(); ElementHost element = new ElementHost() { AutoSize = true, Child = mainview }; element.CreateControl(); return(element); }
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); }
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; }
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); }