public Task(Window window) { try { this.window = window; window.TitleChanged += WindowTitleChanged; //when the title of the window changes } catch (Exception e) { ((Func <object, Task <object> >)Main.callback)("Error: " + e.Message); } }
private void MainWindowLoaded(object sender, RoutedEventArgs e) { settings.TaskWindowHandle = new WindowInteropHelper(this).Handle; settings.TaskWindow = this; var w = new MerulaShell.windows.Window(settings.TaskWindowHandle); w.SetTopMost(); Height = settings.TaskbarHeight; var manager = new ManageWindows(); manager.AddException(settings.TaskWindowHandle); UiBrush = new SolidColorBrush(settings.UiColor); this.DockBottom(); //this.Topmost = true; }