예제 #1
0
파일: Task.cs 프로젝트: MainSilent/Taskbar
 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);
     }
 }
예제 #2
0
        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;
        }