using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Threading.Tasks; using System.Windows; using System.Windows.Media.Imaging; namespace _29WxOrderWpf { /// /// App.xaml 的交互逻辑 /// public partial class App : Application { public static string[] args = new List().ToArray(); protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); if (e.Args.Length > 0) { args = e.Args; } #region 后台修改logo //// 替换字典程序logo等 //Uri imageUri = new Uri("pack://application:,,,/Resources/WindowBoxes/close.hover.png"); // 新的图片路径 //BitmapImage newBitmapImage = new BitmapImage(imageUri); //// 获取资源字典 //ResourceDictionary dict = Application.Current.Resources; //// 添加或更新资源 //dict["main29WeixinIcon"] = newBitmapImage; #endregion } } }