I know next to nothing about the URI class. I need to make an Relative URI to reference a file in my project (that is on the root of the project).
How can I do that?
This is what I have tried and it does not seem to work:
var uri = new Uri("ModuleCatalog.xaml", UriKind.Relative)
I have also tried:
var uri = new Uri("/ShellProject;component/ModuleCatalog.xaml", UriKind.Relative);
When I examine my uri
variable in the debugger it has thrown a lot of exceptions. The only value that is real is the original text value.
What do I need to do to make it a valid uri?
I think that I don't get how a Uri object works.
I guess I am asking for the basics of how to make a uri and have it reference a file in my project (with out having to hard code the full path from the C:\ drive.