W
Wonko the Sane
Hi Gurus,
We have an WPF Add-In that we use to interact with our main WPF application.
In order to localize it, I am trying to use a pack command to build a Uri as
follows:
string resourcesFileName = @"pack://SiteOfOrigin:,,,/MyPath/MyFile_us.xaml";
Uri uriResources = new Uri(resourcesFileName, UriKind.Absolute);
When the call to create the Uri gets run, it gives the following
UriFormatException:
Invalid URI: A port was expected because of there is a colon (":") present
but the port could not be parsed.
Any ideas on how I can get a reference to this relative path where the
Add-In resides, so I can (eventually) load the ResourceDictionary XAML file?
Thanks,
WtS
We have an WPF Add-In that we use to interact with our main WPF application.
In order to localize it, I am trying to use a pack command to build a Uri as
follows:
string resourcesFileName = @"pack://SiteOfOrigin:,,,/MyPath/MyFile_us.xaml";
Uri uriResources = new Uri(resourcesFileName, UriKind.Absolute);
When the call to create the Uri gets run, it gives the following
UriFormatException:
Invalid URI: A port was expected because of there is a colon (":") present
but the port could not be parsed.
Any ideas on how I can get a reference to this relative path where the
Add-In resides, so I can (eventually) load the ResourceDictionary XAML file?
Thanks,
WtS