public void Start(IBundleContext context) { var splashForm = new SplashForm(Resources.Splashscreen); splashForm.Show(); context.AddService(typeof(IWPFUIElementAdapter), new WPFUIElementAdapter()); var layoutView = new ShellLayoutView(); context.AddService <IWorkspace>(layoutView.Workspace); context.AddService(layoutView.CreateShellLayoutViewProxy()); var form = new ShellForm(); context.AddService <Form>(form); form.ShowLayoutIvew(layoutView); form.Activated += (sender, e) => splashForm.Close(); }
public void ShowLayoutIvew(ShellLayoutView view) { Controls.Clear(); Controls.Add(view); view.Dock = DockStyle.Fill; }