/// <summary> /// Retrieve an existing theme entry by its Uri source. /// Returns null if theme is not present. /// </summary> /// <param name="source"></param> /// <returns></returns> public IThemeInfo GetThemeInfo(Uri source) { ThemeInfo ret = null; mDic.TryGetValue(source, out ret); return(ret); }
/// <summary> /// Retrieve an existing theme entry by its Uri source. /// Returns null if theme is not present. /// </summary> /// <param name="source"></param> /// <returns></returns> public IThemeInfo GetThemeInfo(string name) { ThemeInfo ret = null; mDic.TryGetValue(name, out ret); return(ret); }
/// <summary> /// Remove an existing theme entry by its Uri source. /// </summary> /// <param name="source"></param> /// <returns></returns> public IThemeInfo RemoveThemeInfo(Uri source) { ThemeInfo ret = null; if (mDic.TryGetValue(source, out ret) == true) { mDic.Remove(source); return(ret); } return(ret); }
/// <summary> /// Remove an existing theme entry by its Uri source. /// </summary> /// <param name="source"></param> /// <returns></returns> public IThemeInfo RemoveThemeInfo(string name) { ThemeInfo ret = null; if (mDic.TryGetValue(name, out ret) == true) { mDic.Remove(name); return(ret); } return(ret); }