private void ShowPalette() { if (PaletteSet == null) { PaletteSet = new PaletteSet("Notches") { DockEnabled = DockSides.None, Size = new Size(270, 400), MinimumSize = new Size(270, 300) }; var plugin = new NotchesPlugin(); var paramsView = new UI.ParamsView { DataContext = plugin.Params }; var host = new System.Windows.Forms.Integration.ElementHost(); host.AutoSize = true; host.Dock = System.Windows.Forms.DockStyle.Fill; host.Child = paramsView; PaletteSet.Add("ParamsView ElementHost", host); plugin.Init(); } PaletteSet.KeepFocus = true; PaletteSet.Visible = true; }
public UpdateDestinationNotchesCommand(NotchesPlugin plugin) { this.plugin = plugin; }
public ReadSelectionCommand(NotchesPlugin plugin) { this.plugin = plugin; }