Method ResourceUtil.GetWpfImage
Overload
Gets WPF image or icon that can be used as ImageSource.
public static BitmapFrame GetWpfImage(string name)
Parameters
|
name (string)
Resource name, like |
Returns
Exceptions
|
FileNotFoundException
Cannot find assembly or resource. |
|
InvalidOperationException
The resource type is not stream. |
|
Exception
Other exceptions that may be thrown by used .NET functions. |