public void RemoveResourceDictionary(ResourceDictionary resource) { _logger.Info("Removing resource {0}", resource.GetType().Name); Application.Current.Resources.MergedDictionaries.Remove(resource); }