How do i get an Image for the various MessageBoxImage(s) or MessageBoxIcon(s)
问题 How do i get an System.Drawing.Image for the various System.Windows.MessageBoxImage (s) and/or System.Windows.Forms.MessageBoxIcon (s) 回答1: SystemIcons is what I was looking for: SystemIcons.Warning.ToBitmap(); 回答2: You can also include SystemIcons in your XAML as follows: Include a converter (see code below) as a Resource, and an Image control in your XAML. This Image sample here shows the information icon. <Window.Resources> <Converters:SystemIconConverter x:Key="iconConverter"/> </Window