public static string GetResourceDictionaryPath(this ApplicationTheme theme) { return(theme.GetAttributeValue <AssociatedResourceDictionaryAttribute, string>(x => x.ResourceDictionaryPath)); }