Commit Graph

684 Commits

Author SHA1 Message Date
JanEggers e04e36bd04 added cleanup command so resources get cleaned up if a user closes a tab 2014-05-15 20:18:42 +02:00
amaitland 260f8b1f39 Rename LoadCompleted to FrameLoadEnd (event is actually triggered when the loading of each frame is complete) 2014-05-12 14:09:30 +10:00
JanEggers 197763be5f changed default command to ease testing 2014-05-10 19:11:49 +02:00
JanEggers d7f8c8961b wired method calls to reach the BrowserProcess 2014-05-08 22:21:06 +02:00
JanEggers ec377dced6 Merge remote-tracking branch 'upstream/master' into Fixed_Warnings 2014-05-05 18:44:58 +02:00
JanEggers 519c6d3625 ignore unused events 2014-05-05 18:44:46 +02:00
Per Lundberg f7e5b56f16 Add some margin between the X and the title. 2014-04-30 23:39:49 +03:00
Per Lundberg 991e442712 Less whitespace to the people. 2014-04-30 23:39:37 +03:00
Per Lundberg 6fcfc61ac3 Changed property name to make it more explicit what this one is about. 2014-04-30 23:38:28 +03:00
amaitland a89387561a Remove default value from constructor, keeps setting of URL's in one place (in MainWindow) 2014-04-30 23:34:08 +03:00
amaitland 1fb6a37814 Remove ViewSourceCommand from ViewModel, instead using the newly implemented command on WebView instead 2014-04-30 23:33:41 +03:00
Per Lundberg 86e928add2 Added an ItemTemplate with a Close button. 2014-04-30 23:33:02 +03:00
Per Lundberg ebba8df329 Ah, apparently I missed these ones earlier. The downside of trying to be minimalistic I guess. ;) 2014-04-30 23:32:25 +03:00
Per Lundberg 23864d64a6 We also need a ContentTemplate, so we display stuff appropriately. 2014-04-30 23:31:34 +03:00
Per Lundberg b745f7bf13 Set up bindings for Ctrl+T and Ctrl+W, to Open and Close tabs respectively. 2014-04-30 23:30:47 +03:00
Per Lundberg 8d0974880f Cleaned up the way we used the tab, by binding to a collection of BrowserTabViewModels instead. We could clean this up even further by moving stuff out from MainWindow to a MainView & MainViewModel (to achieve a fully code-behind-free approach), but let’s start with this. :) Similarly, based on @amaitland’s changes, only splitting them more aggressively. 2014-04-30 23:29:41 +03:00
Per Lundberg 1ad34edc90 Added custom TabItem style, with some triggers to make Selected and non-selected tabs look different (to make it easier to distinguish them from each other). 2014-04-30 23:23:35 +03:00
Per Lundberg d0021be6f5 Added custom DataTemplate for BrowserTabViewModels, so we can use the TabControl in a much more MVVM-oriented fashion than previously. 2014-04-30 23:22:29 +03:00
Per Lundberg d546da5c71 Added the NonReloadingTabControl, with an appropriate (slightly customized) style. Based on 8bddd309e1 by amaitland, but slightly tweaked so we make each commit even more minimalistic in nature. 2014-04-30 23:19:59 +03:00
amaitland 9ab903f43c Namespace and folder cleanup
Create ViewModels namespace - move ViewModel and rename to BrowserTabViewModel
Move and rename MainView to BrowserTabView
2014-04-30 23:05:11 +03:00
fraenke75 1b66115fae Reverted changes which should not be committed 2014-04-22 16:40:33 +02:00
jornh ed3ab35918 Merge pull request #335 from jornh/feature/print-command
Add Print()
2014-04-19 06:52:36 +02:00
jornh 0b3d13265e Add Print() now that it's supported in the CEF 1650 branch 2014-04-17 09:41:12 +02:00
amaitland 389e2de969 Add license disclaimer
Remove an unused reference in MainWindow.xaml.cs
Fix comment for OnPropertyChanged event
2014-04-17 11:53:06 +10:00
Per Lundberg ce1d9fcd0c ...and also refer to just "the CefSharp Authors", since the CefSharp Project is not really a legal entity in its own. 2014-04-15 22:46:47 +03:00
Per Lundberg 5a9790c076 Fixed copyright to indicate that we are now on the 2014 side of things. 2014-04-15 22:46:25 +03:00
fraenke75 413567a028 Added CefRequestHandler.OnBeforePluginLoad 2014-04-10 15:59:45 +02:00
Per Lundberg 76872c14ca Added a silly BindingTest. None of this is really used for now. 2014-04-05 19:49:32 +03:00
Per Lundberg 933d047665 ObjectBase is now DisposableResource, which better explains what it pertains to. 2014-04-04 20:41:29 +02:00
Per Lundberg 75b4d130c7 Should never rely on webBrowser; it's the backing field for the WebBrowser property (which should be used instead of going straight to the backing field...). 2014-04-02 17:56:19 +01:00
amaitland 14107bebbb WPF ZoomIn/Out Functionality
Added GetZoomLevel and SetZoomLevel methods to ManagedCefBrowserAdapater
Currently unable to get GetZoomLevel to return any value other than 0,
comment in source says "This method can only be called on the UI
thread", so need to investigate that further. SetZoomLevel works as
expected.
Added WPF Commands for ZoomIn, ZoomOut and ZoomReset.
Added Dependency properties for ZoomLevel and ZoomLevelIncrement
Added content menu items for ZoomIn, ZoomOut and ZoomReset to Wpf
Example
2014-04-02 15:22:43 +10:00
JanEggers 3b09e72e1f fixed warnings 2014-03-29 23:42:17 +01:00
JanEggers 2c819bdfd6 moved Class as requested by todo and added some comments 2014-03-29 10:35:52 +01:00
Per Lundberg fd20a062dc #212: Why not go ahead and make a proper tabbed browser while we're at it... :) 2014-03-21 23:47:30 +02:00
Per Lundberg 7ad4fb56be Only show the sidebar on the first tab. 2014-03-21 23:28:48 +02:00
JanEggers 56c8a50474 Merge remote-tracking branch 'upstream/master' into CefSharp.Core 2014-03-17 23:04:18 +01:00
Per Lundberg bb38c5ec3f Don't set the MainWindow Title then, since it just makes things confusing. 2014-03-15 22:27:15 +02:00
Per Lundberg 271eb2c277 Fixed the tab titles to be data-bound to the title of the web page they are displaying. 2014-03-15 22:27:01 +02:00
Per Lundberg caeac08cfa Let's start working towards a "tabbed browser" instead of the OneBrowser/ManyBrowser approach. 2014-03-15 22:16:59 +02:00
JanEggers 66383f9a38 fixed warnings 2014-03-14 23:19:12 +01:00
JanEggers 1f9f286563 fixed compilation for x64 / win32 debug / release with vs 2013 and moved natives to seperate props file 2014-03-14 22:22:33 +01:00
JanEggers 52bfa60c23 remaining stuff that i desired to put in on changeset 2014-03-09 14:11:37 +01:00
JanEggers b4201d1971 extended samples to show multiple instances work 2014-02-24 07:50:05 +01:00
Per Lundberg da81a98443 Moved the PropertyChangedExtensionMethods class, since it will be used from the WinForms example also. 2013-11-13 22:56:07 +02:00
Per Lundberg bb18af844c Minor cleanup. 2013-11-13 22:52:50 +02:00
Per Lundberg f06ab5bd82 Ah. There’s nothing more awesome than being able to delete a bunch of old code. :) 2013-11-13 17:51:53 +02:00
Per Lundberg 15b351cda6 Harmonized a bunch of AssemblyInfos, and also made the copyrights a bit clearer. 2013-11-10 23:54:08 +02:00
Per Lundberg 4c958cdfcb Fixed a much better example for the eval/exec JS stuff. Closes #209. 2013-11-10 23:16:29 +02:00
Per Lundberg 726bcd3814 #209. Let’s try to avoid the “everything-is-glued-together” style of UI… 2013-11-08 22:51:14 +01:00
Per Lundberg cedbbc4394 #209. Fixed the JS execution UI to be a bit more reasonable, at least. 2013-11-08 22:49:47 +01:00