Exemple #1
0
        private void WcBrowser_OnDisplay(object sender, Neutronium.Core.Navigation.DisplayEvent e)
        {
            var windowCfx  = wcBrowser.WPFWebWindow as IWPFCfxWebWindow;
            var cfxBrowser = windowCfx.ChromiumWebBrowser;

            cfxBrowser.DragHandler.OnDragEnter += DragHandler_OnDragEnter;
            cfxBrowser.ContextMenuHandler.OnBeforeContextMenu += ContextMenuHandler_OnBeforeContextMenu;
        }
        private void WcBrowser_OnDisplay(object sender, Neutronium.Core.Navigation.DisplayEvent e)
        {
            var windowCfx = wcBrowser.WPFWebWindow as IWPFCfxWebWindow;

            browser = windowCfx.ChromiumWebBrowser;
            windowCfx.ChromiumWebBrowser.DragHandler.OnDragEnter += DragHandler_OnDragEnter;
            windowCfx.ChromiumWebBrowser.DragHandler.OnDraggableRegionsChanged += DragHandler_OnDraggableRegionsChanged;
        }