Commit Graph

22 Commits

Author SHA1 Message Date
Alex Maitland 6e211bcc7f Wpf - Context Menu improvements/fixes
- Fix separator not showing
- Remove unused code
- Add consts for devtools menu command id's
2021-11-30 13:47:42 +10:00
Alex Maitland 6ce9958d2d WPF - Add System.Windows.Controls.ContextMenu based ContextMenuHandler (#3815)
* WPF - Add System.Windows.Controls.ContextMenu based ContextMenuHandler

Based of https://github.com/chromiumembedded/cef/blob/ba46b8c53ed0f46cec82a1aebaec173784deb6e4/libcef/browser/menu_manager.cc#L385

* Add model class instead of passing in params
2021-09-23 13:43:28 +10:00
campersau 8ad0c76f1b Wpf.Example - Remove MvvmLight 2020-11-09 20:19:31 +10:00
amaitland dc3d83eca1 WPF Example - MenuHandler commands now fire reliably
- The MVVM Light RelayCommand keeps a WeakRef to the command action, for us this is anonymous, so we
need to keep the target alive.
- Updated MVVMLightLibs (required for keepTargetAlive)
2019-08-13 20:38:36 +10:00
amaitland 52ec00c486 Code cleanup - Rename IWebBrowser browserControl to chromiumWebBrowser
Hopefully this makes it clearer that the IWebBrowser instance is actually the ChromiumWebBrowser

Updated almost all instances, there's one WinForms example that wasn't updated
2019-07-20 16:26:25 +10:00
Chris 30ee538ce0 Added EditorConfig (#2514) 2018-09-17 00:46:21 +02:00
Chris bef5dd37c4 Maintenance - Fixed formatting, file encoding, and copyright year (#2504)
* Applied formatting

* Fixed file encoding + Updated copyright year

* Updated License

* Fixed more file encoding

* Copyright notice now shows the year the file was created
2018-09-10 10:41:13 +10:00
amaitland 709645a195 WPF Example - Remove commented out context menu code
Left over from when the built in wasn't working (it still only works partially) due to https://github.com/cefsharp/CefSharp/issues/1767
Improve comments and add links to make clearer
2018-07-09 20:04:41 +10:00
amaitland 0032ae463f WPF Example - update MenuHandler to implement custom menu, execute command based on CefMenuCommand enum rather than trying to use IRunContextMenuCallback which isn't working (upstream issue)
This is a workaround for #1767
You can use the default CEF menu it does however require you to integrate CEF into your main message loop see #1795
2018-01-18 10:25:50 +10:00
Chris cd934267c6 Updated copyright year and made sure it used same format everywhere (#1966) 2017-03-06 08:44:37 +10:00
amaitland c2bf9fb314 WPF - Custom context menu not working, revert to using the built in context menu (which didn't work previously, one thing fixed, another broken)
At some point this will need to be reported upstream
2016-08-28 08:55:33 +10:00
amaitland b89377e630 WPF Custom context menu - let CEF know when the menu has been closed 2016-02-12 11:55:11 +10:00
amaitland 84f7c5dc62 WPF - Hack together a slightly more complete context menu example 2016-02-10 09:57:41 +10:00
amaitland bae3c28e92 Update copyright to 2016 2016-01-11 14:11:30 +10:00
amaitland 514d7e275d Add IContextMenuHandler.RunContextMenu 2015-10-12 08:08:41 +10:00
amaitland fa7728b0d0 Strongly type commandId
Add example of using custom menu id numbers
2015-08-31 11:36:49 +10:00
amaitland 29e6bc7571 Rename IMenuHandler to IContextMenuHandler 2015-08-17 13:42:44 +10:00
amaitland 75ff0ed3e4 Add IMenuModel
Refactor to reflect actual underlying Cef Model (Remove return bool)
2015-08-17 13:33:27 +10:00
Bill Tutt de7b6b4240 More IFrame usages, take special note of the chaneges in the EventArgs types. 2015-05-02 01:15:47 -04:00
rassilon 7128e40fd1 It's time for copyright updates again. Yay!
Throw in a couple of tab containing files for good measure.
Evil tabs, evil I say.
2015-04-25 02:45:21 -04:00
amaitland e6e85f67eb Add license disclaimer
Cleanup formatting
2014-12-22 17:23:33 +10:00
Bodekaer 901438da05 Added support for context menu parameters. All supports new spell check feature #222 2014-11-04 19:03:02 +08:00