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.


Solution 1:

There is a SystemIcons class, but it need adjustment for WPF needs (i.e. converting Icon to ImageSource).

Solution 2:

The vast majority of developers out there don't know that Visual Studio comes with an Image Library. So here goes two links that highlight it:

About using Microsoft Visual Studio 2008 Image Library.