WPF-后端对Icon赋Resources资源中的值
Stream iconStream = Application.GetResourceStream(new Uri("pack://application:,,,/TestApp;component/Resources/Test.ico")).Stream; WindowsNotifyIcon.Icon = new System.Drawing.Icon(iconStream); // 图标
本文来自博客园,作者:꧁执笔小白꧂,转载请注明原文链接:https://www.cnblogs.com/qq2806933146xiaobai/p/15747240.html