protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            if (e.Args.Length > 0)
            {
                Load();
                Wallpaper.Set(new Uri(System.IO.Path.Combine(System.IO.Path.GetTempPath(), "wallpaper.bmp"), UriKind.Absolute), Wallpaper.Style.Stretched, items);

                Environment.Exit(0);
            }
        }
Exemple #2
0
 private void Apply_Click(object sender, RoutedEventArgs e)
 {
     Wallpaper.Set(new Uri(System.IO.Path.Combine(System.IO.Path.GetTempPath(), "wallpaper.bmp"), UriKind.Absolute), Wallpaper.Style.Stretched, items);
 }