Method ResourceUtil.GetXamlObject
Overload
Gets WPF object from XAML resource, for example image.
public static object GetXamlObject(string name)
Parameters
name (string)
Resource name, like |
Returns
object
An object of type of the XAML root object, for example Viewbox if Image. |
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. |