Im trying to set the source of a resource dictionary in c# to a location of a folder within the project, but get the above error.
Could someone advise what the issue
You have to use UriKind.Relative
myResourceDictionary.Source = new Uri("../Resources/Styles/Shared.xaml", UriKind.Relative);