This interface defines the members that an IWebView presentation control should implement, if it wants to respond to UI related events, without handling the relative events.
Assembly: Awesomium.Core (in Awesomium.Core.dll) Version: 188.8.131.52
public interface IWebViewPresenter : IDisposable
Public Interface IWebViewPresenter Inherits IDisposable
public interface class IWebViewPresenter : IDisposable
Thetype exposes the following members.
Called when any drop-down (popup) menus visible, should be hidden.
Called when any tool-tips visible, should be hidden.
Called when the view asks for a dialog to display an SSL certificate that was encountered while navigating to an address.
Called when the view asks for a dialog that will select local files.
Called when the current cursor indicated by the View, changes.
Called when the view asks for a dialog that will select the local path to the file to be downloaded.
Called when the view asks for a dialog that will allow the user to provide login info.
Called when the view asks for a drop-down (popup) menu to be presented.
Called when the view asks for a tool-tip to be presented.
Called when the view asks for a context menu to be presented.
Called when the view asks for web page security information to be presented.
Gets or sets the IWebView instance this instance is presenting, or is responsible for providing UI logic for.
|When used with an offscreen WebView, an instance of that also implements ISurface, will be used as the view's default surface, as long as it has been assigned to Presenter immediately after the creation of the WebView.|
Usage in WPFThe interface is extensively used in WPF. IWebView presentation controls are used in the visual tree when styling a WPF WebControl. These can be custom WPF surfaces implementing ISurface (for offscreen views) or any other control providing custom presentation of a IWebView instance. When the custom control is added to the visual tree and loaded for presentation, the IWebView instance (typically, a WPF WebControl) uses the interface to communicate with the presentation control. Awesomium.Windows.Controls already provides 2 such presenters:
|Presentation Control||Usage (by the default style)|
|WebViewPresenter||Used when ViewType is set to Offscreen (default). This is an ISurface component that uses 100% WPF logic to copy the view's pixel buffer to a bitmap that it then renders for presentation.|
|WebViewHost||This is an HwndHost that is used when ViewType is set to Window. For more details, read the documentation of WebViewHost.|