Interface IWebView
Describes web view object.
Inherited members
Properties
| Improve this Doc View SourceCanExecuteJavascriptInMainFrame
Gets a flag that indicates if you can execute javascript in the main frame.
Property Value
Type | Description |
---|---|
bool |
WindowHost
Gets window host for the web view. Doesn't apply to off-screen views.
Property Value
Type | Description |
---|---|
System.Windows.Window |
Methods
| Improve this Doc View SourceClose()
Closes view.
DeleteCookies(string, string)
Deletes cookies.
Parameters
Type | Name | Description |
---|---|---|
string | url | Cookie URL. |
string | name | Cookie name. |
DeleteDomainCookies(string)
Deletes all cookies from specified domain.
Parameters
Type | Name | Description |
---|---|---|
string | domain | Cookie domain. |
DeleteDomainCookiesRegex(string)
Deletes all cookies from domains matching specified regular expression.
Parameters
Type | Name | Description |
---|---|---|
string | domainRegex |
EvaluateScriptAsync(string)
Evaluates JavaScript script in the browser instance.
Parameters
Type | Name | Description |
---|---|---|
string | script |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult>JavaScriptEvaluationResult |
GetCookies()
Gets all cookies.
Returns
Type | Description |
---|---|
System.Collections.Generic.List<T>HttpCookie | List of cookies. |
GetCurrentAddress()
Gets current URL address.
Returns
Type | Description |
---|---|
string | URL address. |
GetPageSource()
Gets document source.
Returns
Type | Description |
---|---|
string | Document source. |
GetPageSourceAsync()
Gets document source.
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult>string | Document source task. |
GetPageText()
Gets page text.
Returns
Type | Description |
---|---|
string | Page text. |
GetPageTextAsync()
Gets page text.
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult>string | Page text. |
Navigate(string)
Navigates to url.
Parameters
Type | Name | Description |
---|---|---|
string | url | URL to load. |
NavigateAndWait(string)
Navigates to url and wait for page to be loaded.
Parameters
Type | Name | Description |
---|---|---|
string | url | URL to load. |
Open()
Open view.
OpenDialog()
Open view as modal dialog.
Returns
Type | Description |
---|---|
bool |
SetCookies(string, HttpCookie)
Sets cookie data.
Parameters
Type | Name | Description |
---|---|---|
string | url | Cookie URL. |
HttpCookie | cookie | Cookie data. |
SetCookies(string, string, string, string, string, DateTime)
Sets cookie data.
Parameters
Type | Name | Description |
---|---|---|
string | url | Cookie URL. |
string | domain | Cookie domain. |
string | name | Cookie name. |
string | value | Cookie value. |
string | path | Cookie url path. |
System.DateTime | expires | Expiration date. |
Events
| Improve this Doc View SourceLoadingChanged
Occurs when web view loading changes, for example when page is loaded.
Event Type
Type | Description |
---|---|
System.EventHandler<TEventArgs>WebViewLoadingChangedEventArgs |