Commit Graph

141 Commits

Author SHA1 Message Date
Adrian Phinney 96bdad96d4 Add StatusMessage examples for WPF/WinForms. 2014-08-12 09:25:33 -04:00
amaitland a9cf8c30ab Fixed webView to browser commit 2014-06-12 12:37:02 +10:00
amaitland 36503b616c Assign RequestHandler in BrowserTabView 2014-06-12 01:55:34 +03:00
amaitland fff9422e52 Rename ExamplePresenter to RequestHandler (Alex had also removed old commented out code, but I am moving that part of the change to a separate commit to help git/SourceTree better understand that the file has been renamed, so we preserve history etc)
Conflicts:
	CefSharp.Example/ExamplePresenter.cs
2014-06-12 01:53:46 +03:00
amaitland ff03b13a33 Create CefExample class to house common Init() and DefaultUrl
Conflicts:
	CefSharp.WinForms.Example/BrowserForm.cs
2014-06-12 01:49:37 +03:00
amaitland 8b4c1f79f7 Change public commands to be straight ICommand (easier for them to be replaced if we implement an mvvm framework later) 2014-06-11 23:49:07 +03:00
amaitland f2510c31a1 Change IWebBrowser.LoadError to have proper EventArgs (LoadErrorEventArgs) 2014-06-11 23:46:42 +03:00
Per Lundberg 4b865946c3 Renamed the WPF control also, in line with how System.Windows.Controls.WebBrowser is actually named. 2014-06-02 13:00:03 -07:00
jornh efe0e7a11c Polish OnBeforePluginLoad handler example code a bit.
For safety towards side effects in other code keep ExamplePresenter disabled for now though.
2014-05-25 21:11:42 +02:00
jornh 7265a0da3b Merge branch 'RequestHandlers' of https://github.com/fraenke75/CefSharp into fraenke75-RequestHandlers
Manual resolution including adding DECL OVERRIDE to the added virtual function in ClientAdapter.h
2014-05-25 17:12:35 +02:00
fraenke75 22c1ccef0c Added the usage of the OnBeforePluginLoad to the ExamplePresenter 2014-05-22 17:30:07 +02:00
JanEggers 4a231544fd fixed whitespace (contained tabs) 2014-05-17 05:59:17 +02:00
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 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
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