Beispiel #1
0
        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));
        }
Beispiel #2
0
        public IImage GetImageFromManifest(Assembly assembly, string imageRef)
        {
            var assemblyImage = ViewsHelper.GetManifestImageResource(assembly, string.Format("{0}.png", imageRef));

            return(new Image(assemblyImage));
        }