public static BitmapImage LoadAsFrozen(Assembly packAssembly, string path) { var callingASM = Assembly.GetCallingAssembly(); var uri = new Uri(string.Format("pack://application:,,,/{0};component/{1}", packAssembly.GetName().Name, path), UriKind.Absolute); return(BitmapImageEx.LoadAsFrozen(uri)); }
public static BitmapImage LoadAsFrozen(string path) { return(BitmapImageEx.LoadAsFrozen(Assembly.GetCallingAssembly(), path)); }