public IImage GetImageFromManifest(Assembly assembly, string imageRef) { ImageSource assemblyImage = null; Application.Current.Dispatcher.Invoke(() => { assemblyImage = ViewsHelper.GetManifestImageResource(assembly, string.Format("{0}.png", imageRef)); }); return(new Views.Wpf.Image(assemblyImage)); }
public IImage GetImageFromManifest(Assembly assembly, string imageRef) { var assemblyImage = ViewsHelper.GetManifestImageResource(assembly, string.Format("{0}.png", imageRef)); return(new Image(assemblyImage)); }