public void OpenEditor(IntPtr parentWindow) { Logging.Log("Open editor"); if (EditorView == null) { EditorView = new EditorView(this) { Width = DevInfo.EditorWidth, Height = DevInfo.EditorHeight }; } DevInfo.EditorWidth = (int)EditorView.Width; DevInfo.EditorHeight = (int)EditorView.Height; HostInfo.SendEvent(DeviceId, new Event { Data = null, EventIndex = 0, Type = EventType.WindowSize }); window = new System.Windows.Window() { Content = EditorView }; window.Width = EditorView.Width; window.Height = EditorView.Height; DeviceUtilities.DockWpfWindow(window, parentWindow); window.Show(); }
public void OpenEditor(IntPtr parentWindow) { View = new SynthView(VM); HostInfo.SendEvent(this, new Event() { Data = null, EventIndex = 0, Type = EventType.WindowSize }); DeviceUtilities.DockWpfWindow(View, parentWindow); }
public void OpenEditor(IntPtr parentWindow) { HostInfo.SendEvent(DeviceId, new Event() { Data = null, EventIndex = 0, Type = EventType.WindowSize }); window = new ScriptWindow(); window.ViewInstance.DataContext = ViewModel; ViewModel.CurrentDispatcher = window.Dispatcher; window.Topmost = true; window.ShowInTaskbar = false; window.Show(); DeviceUtilities.DockWpfWindow(window, parentWindow); }