private static ResourceDictionary LoadDictionary(string key) { return new ResourceDictionary { Source = new Uri(key, UriKind.Relative) }; } }