Commit Graph

126 Commits

Author SHA1 Message Date
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 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
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
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
Per Lundberg 4df9ef32c6 Let’s move the backing fields closer to the actual properties which exposes them. 2013-11-08 22:10:53 +01:00
Per Lundberg 1c4dcc1a31 #209. Added exception handling for the evaluate/execute JS stuff. 2013-11-08 08:11:53 +01:00
Per Lundberg 577c78108f #209. Added a UI for these parts (simple JavaScript execution, optionally synchronous). 2013-11-08 00:39:41 +01:00
Per Lundberg 105b800dd9 Whitespace fix. 2013-11-07 23:40:52 +01:00
Per Lundberg 1fed5d62a6 #159: Added DelegateCommand<T>, since we need it for the Run buttons that will let us run our Javascript code. 2013-11-07 23:40:04 +01:00
Per Lundberg 394287cf08 WIP on #159, trying to drastically refactor the subprocess (in C#, which is debuggable and hence a HUGE plus in what we are trying to achieve...). Will also consider using the C API for CEF, since I think it actually will suit us better. 2013-10-29 22:29:52 +02:00
Per Lundberg b6b43fd797 A futile attempt to try and get debugging of the subprocess working. It doesn't seem so easy to get Visual Studio to accept this one, unfortunately. 2013-10-28 00:10:49 +02:00
Per Lundberg 87d561616c Set up a horrible hack, inspired by http://stackoverflow.com/questions/12640878/force-visual-studio-to-rebuild-dependent-projects, to be able to "just press F5" and run the WPF Example. 2013-10-27 17:32:59 +02:00