WPF-后端对Icon赋Resources资源中的值

Stream iconStream = Application.GetResourceStream(new Uri("pack://application:,,,/TestApp;component/Resources/Test.ico")).Stream;
WindowsNotifyIcon.Icon = new System.Drawing.Icon(iconStream);  // 图标
posted @ 2021-12-30 00:09  ꧁执笔小白꧂  阅读(273)  评论(0编辑  收藏  举报