我如何使用标准的Windows警告/错误的图标在我的WPF应用程序? [英] How do I use standard Windows warning/error icons in my WPF app?

查看:94
本文介绍了我如何使用标准的Windows警告/错误的图标在我的WPF应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的WPF应用程序制作一个自定义的错误对话框,我想用一个标准的Windows错误图标。我可以从WPF操作系统特定的图标?如果没有,有没有人知道从哪里得到与他们的透明度.pngs?或者知道哪里在Windows中去,从它们提取出来?

I'm making a custom error dialog in my WPF app and I want to use a standard windows error icon. Can I get the OS-specific icon from WPF? If not, does anyone know where to get .pngs with transparency of them? Or know where in Windows to go extract them from?

到目前为止,我的搜索​​已经变成了什么。

So far my searches have turned up nothing.

推荐答案

有一个 SystemIcons 类,但它需要调整WPF需要(即转换图标的ImageSource )。

这篇关于我如何使用标准的Windows警告/错误的图标在我的WPF应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆