I am using these method to load images and resource directory dynamically, but they do not work in every case
new Uri(@"pack://application:,,/Images/lession_tab.png"); this method donot work for image but it work for Resource file.
new Uri("/project;component/Resources/Dictionary1.xaml", UriKind.Relative); this method donot work for resouce directory but it works for image.
if i am getting this correctly pack://application work to get the local assesmbly path then why this not working for images
it is giving the exception Cannot locate resource 'images/lession_tab.png'.