Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new Task(() =>
- {
- for (var x = 0;x<4;x++)
- {
- foreach (var i in themes)
- {
- Application.Current.Dispatcher.BeginInvoke(
- DispatcherPriority.Background,
- new System.Action(
- () =>
- ThemeManager.ChangeTheme(this, new Accent(i.Name, i.URI),
- Theme.Light))).Wait();
- Thread.Sleep(5);
- }
- }
- 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