Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new Task(() =>
- {
- for (var x = 0;x<4;x++)
- {
- for (var i = 0; i < themes.Count; i++)
- {
- Application.Current.Dispatcher.BeginInvoke(
- DispatcherPriority.Background,
- new System.Action(
- () =>
- ThemeManager.ChangeTheme(this, new Accent(themes[i < themes.Count ? i : 19].Name, themes[i < themes.Count ? i : 19].URI),
- Theme.Light)));
- Thread.Sleep(30);
- }
- }
- Application.Current.Dispatcher.BeginInvoke(
- DispatcherPriority.Background,
- new System.Action(
- () =>
- ThemeManager.ChangeTheme(this, new Accent(themes[11].Name, themes[11].URI),
- Theme.Dark)));
- }).Start();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement