Skip to content
This repository has been archived by the owner on Jan 15, 2023. It is now read-only.

Latest commit

 

History

History
38 lines (30 loc) · 2.44 KB

registering_custom_handlers.md

File metadata and controls

38 lines (30 loc) · 2.44 KB

Registering Custom Handlers

All CEF/CefGlue handlers can be configured.

Custom handlers can be registered in ChromelyApp Configure method.

The following handlers can be customized and registered:

For example to register CefContext Menu Handler:

    public class CusomChromelyApp : ChromelyBasicApp
    {
          public override void ConfigureServices(IServiceCollection services)
        {
            base.ConfigureServices(services);
            services.AddSingleton<CefContextMenuHandler, CustomContextMenuHandler>();
        }
    }

    public class CustomContextMenuHandler : CefContextMenuHandler
    {
    }