示例#1
0
        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);
            }
        }
示例#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);
 }