Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Expose the zoom level to C#

  • Loading branch information...
commit 815e4ad6fee80d891245112a96ab8ac57ffbc480 1 parent 65a8b1f
Paul Betts authored
Showing with 18 additions and 0 deletions.
  1. +18 −0 CefSharp/CefWpfWebBrowser.h
18 CefSharp/CefWpfWebBrowser.h
View
@@ -167,6 +167,24 @@ namespace CefSharp
double get() { return _contentHeight; }
}
+ property double ZoomLevel
+ {
+ double get() {
+ if (!this->IsInitialized) {
+ return 1.0;
+ }
+
+ return _clientAdapter.get()->GetCefBrowser()->GetZoomLevel();
+ }
+ void set(double val) {
+ if (!this->IsInitialized) {
+ return;
+ }
+
+ _clientAdapter.get()->GetCefBrowser()->SetZoomLevel(val);
+ }
+ }
+
property bool IsInitialized
{
bool get()
Please sign in to comment.
Something went wrong with that request. Please try again.