Skip to main content
All docs
V23.2

SkinManager.RegisterSkinPatch(Assembly, String, Boolean) Method

Loads a skin patch embedded as a resource in a custom assembly.

Namespace: DevExpress.Skins

Assembly: DevExpress.Utils.v23.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

Declaration

public void RegisterSkinPatch(
    Assembly assembly,
    string assemblyResourcePath,
    bool registerSkinPatchPalettes = false
)

Parameters

Name Type Description
assembly Assembly

The custom assembly that stores a patch to load.

assemblyResourcePath String

The assembly resource path.

Optional Parameters

Name Type Default Description
registerSkinPatchPalettes Boolean False

true to register palettes from the patch, false to leave palettes of the default skin.

Remarks

Call the RegisterSkinPatch method on application startup.

namespace SkinPatch {
    static class Program {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main() {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            SkinManager.Default.RegisterSkinPatch(customSkinAssembly, Application.StartupPath + "\\GroupControlWhiteBackground.dll");
            Application.Run(new Form1());
        }
    }
}

See this article for more information: Skin Patches.

See Also