So I\'ve got this nice little MVVM solution, and things work great. I\'ve got a view model for a header bar that adjusts the icon based on the state of the application, etc. I\'
A small code sample to add to the answers above. We use the following in a unit test to get around this issue.
[AssemblyInitialize]
public static void MagicHappensHere(TestContext context) {
PackUriHelper.Create(new Uri("reliable://0"));
}
Once this has been called at the test startup it all works perfectly.