How do I use standard Windows warning/error icons in my WPF app?
问题 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. 回答1: There is a SystemIcons class, but it need adjustment for WPF needs (i.e. converting Icon to ImageSource ). 回答2: About using Standard Microsoft Icons. The vast majority of developers out there