private void Button_Click_5(object sender, RoutedEventArgs e) { new Thread(() => { double v = 0; while (true) { v++; v %= 360; SetWindowGlowColor(ColorEx.FromHSV(v, 1, 1)); SetWindowBorderColor(ColorEx.FromHSV(v, 1, 1)); Thread.Sleep(10); } }).Start(); }