Problem with image path [C#, WPF] -
i need use images in 2 .net assemblies. 1 wpf app {myapp.exe} , second *.dll {mydll.dll}. file located in file structure:
**appfolder** consist these files , 1 subfolder(avatars): -myapp.exe -mydll.dll -avatars {folder} consist: -manimages.jpg -womanimages.jpg
i try user uri in format
new uri(@"c:\users\avatars\manimages.jpg", urikind.relativeorabsolute);
but format not work, images empty.
i expect
new uri(@"avatars\manimages.jpg", urikind.relativeorabsolute);
to work?
you try:
new uri(environment.currentdirectory + @"\avatars\manimages.jpg", urikind.relativeorabsolute);
Comments
Post a Comment