IWebViewPresenter Property Awesomium.NET 1.7.6Awesomium.NET
Gets or sets an IWebView presentation control that will receive requests for UI related events.

Namespace: Awesomium.Core
Assembly: Awesomium.Core (in Awesomium.Core.dll) Version: 1.7.6.0
Syntax

IWebViewPresenter Presenter { get; set; }

Property Value

Type: IWebViewPresenter
Remarks

Members of the IWebViewPresenter interface are used by views to propagate UI related requests that they cannot handle by themselves. For example, the windowless  WebView does not handle any UI related events itself. If an IWebViewPresenter has been assigned to the Presenter property, those requests will be propagated to the presentation control, unless previously handled by a relative event handler.
Note Note
When used with an offscreen WebView, an instance of IWebViewPresenter 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 WPF

The IWebViewPresenter 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 IWebViewPresenter interface to communicate with the presentation control.

Awesomium.Windows.Controls already provides 2 such presenters:

Presentation ControlUsage (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.
See Also

Reference