相关疑难解决方法(0)

如何使用WPF中的资源图标?

我有一个嵌入了资源的.ico文件(构建操作设置为资源).我正在尝试创建一个NotifyIcon.我如何参考我的图标?

notifyIcon = new NotifyIcon();
notifyIcon.Icon = ??     // my icon file is called MyIcon.ico and is embedded
Run Code Online (Sandbox Code Playgroud)

wpf resources icons

67
推荐指数
3
解决办法
9万
查看次数

标签 统计

icons ×1

resources ×1

wpf ×1