示例#1
0
 /// <summary>
 /// Checks whether or not an <see cref="ApplicationTheme"/> with the given ID is available in the installation.
 /// </summary>
 /// <param name="id">The ID of the <see cref="ApplicationTheme"/> to be checked.</param>
 /// <returns>True if an <see cref="ApplicationTheme"/> with the given ID is available; False otherwise.</returns>
 public static bool IsThemeDefined(string id)
 {
     return(ApplicationThemeManager.IsThemeDefined(id));
 }
示例#2
0
 /// <summary>
 /// Gets the <see cref="ApplicationTheme"/> with the given ID.
 /// </summary>
 /// <param name="id">The ID of the <see cref="ApplicationTheme"/> to be retrieved.</param>
 /// <returns>The <see cref="ApplicationTheme"/> with the given ID, or NULL if an <see cref="ApplicationTheme"/> with the given ID is not available.</returns>
 public static ApplicationTheme GetTheme(string id)
 {
     return(ApplicationThemeManager.GetTheme(id));
 }
        protected override Stream OpenResource(string resourceFullName, Assembly assembly)
        {
            var resource = UseApplicationTheme ? ApplicationThemeManager.OpenResource(resourceFullName, assembly) : null;

            return(resource ?? base.OpenResource(resourceFullName, assembly));
        }