Skip to content

Commit 2010da7

Browse files
committed
WPF - Add IWpfWebBrowser.Paint/VirtualKeyboardRequested events to interface
1 parent c11157f commit 2010da7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

CefSharp.Wpf/IWpfWebBrowser.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
//
33
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
44

5+
using System;
56
using System.Windows.Input;
67
using System.Windows.Threading;
8+
using CefSharp.Enums;
9+
using CefSharp.Internals;
710

811
namespace CefSharp.Wpf
912
{
@@ -138,5 +141,19 @@ public interface IWpfWebBrowser : IWebBrowser
138141
/// <value>The title.</value>
139142
/// <remarks>This property is implemented as a Dependency Property and fully supports data binding.</remarks>
140143
string Title { get; }
144+
145+
/// <summary>
146+
/// Raised every time <see cref="IRenderWebBrowser.OnPaint"/> is called. You can access the underlying buffer, though it's
147+
/// preferable to either override <see cref="ChromiumWebBrowser.OnPaint"/> or implement your own <see cref="IRenderHandler"/> as there is no outwardly
148+
/// accessible locking (locking is done within the default <see cref="IRenderHandler"/> implementations).
149+
/// It's important to note this event is fired on a CEF UI thread, which by default is not the same as your application UI thread
150+
/// </summary>
151+
event EventHandler<PaintEventArgs> Paint;
152+
153+
/// <summary>
154+
/// Raised every time <see cref="IRenderWebBrowser.OnVirtualKeyboardRequested(IBrowser, TextInputMode)"/> is called.
155+
/// It's important to note this event is fired on a CEF UI thread, which by default is not the same as your application UI thread
156+
/// </summary>
157+
event EventHandler<VirtualKeyboardRequestedEventArgs> VirtualKeyboardRequested;
141158
}
142159
}

0 commit comments

Comments
 (0)