Uri graphicURI = new Uri("pack://application:,,,Resource.resx", UriKind.Absolute); StreamResourceInfo ri = Application.GetResourceStream(graphicURI); ResXResourceReader rsxr = new ResXResourceReader(ri.Stream); IDictionaryEnumerator id = rsxr.GetEnumerator(); FileInfo[] filesInDir = rsxr.DirectoryToSearch.GetFiles();
In WPF .Net 4, how do find the and iterate the collection of Images from a resource? I need to be able to find a particular image from the collection of images. I have the the build selection as a resouce and copy all selected for the images. I have 4 images of interest in this location path and can see them in the proejct Resources selection under Images.
C:\Projects\PMF Tracking System\PMF Scan-To-Print\PMF Scan-To-Print\Images\???.jpg
I need to be able to deploy the application and earlier I was a known directory path with them in it but I won't be able to do that way because of deployment issues. Thanks for any help...