I have some trouble with uri in my C# code
This is working:
var uri = new Uri("d:/Programozas dotNet/Ugyfel/Ugyfel.ClientWpf/Skins/MainSkin.xaml");
But unfortunately non of these:
var uri = new Uri("/Skins/MainSkin.xaml", UriKind.Relative);
var uri = new Uri("pack://application:,,,/Skins/MainSkin.xaml");
var uri = new Uri("Ugyfel.ClientWpf;/Skins/MainSkin.xaml", UriKind.Relative);
IOException: Cannot locate resource ‘skins/mainskin.xaml’.
How can I use relative uri insted of absolute?
That was a stupid misstake. The correct method is without leading “/”
Thank you for your effort