diff --git a/docs/user-interface/controls/webview.md b/docs/user-interface/controls/webview.md index 3d69b1073c..c979f0e9a5 100644 --- a/docs/user-interface/controls/webview.md +++ b/docs/user-interface/controls/webview.md @@ -11,11 +11,25 @@ The .NET Multi-platform App UI (.NET MAUI) defines the following properties: +::: moniker range="=net-maui-7.0" + - `Cookies`, of type `CookieContainer`, provides storage for a collection of cookies. - `CanGoBack`, of type `bool`, indicates whether the user can navigate to previous pages. This is a read-only property. - `CanGoForward`, of type `bool`, indicates whether the user can navigate forward. This is a read-only property. - `Source`, of type `WebViewSource`, represents the location that the displays. +::: moniker-end + +::: moniker range=">=net-maui-8.0" + +- `Cookies`, of type `CookieContainer`, provides storage for a collection of cookies. +- `CanGoBack`, of type `bool`, indicates whether the user can navigate to previous pages. This is a read-only property. +- `CanGoForward`, of type `bool`, indicates whether the user can navigate forward. This is a read-only property. +- `Source`, of type `WebViewSource`, represents the location that the displays. +- `UserAgent`, of type `string`, represents the user agent. The default value is the user agent of the underlying platform browser, or `null` if it can't be determined. + +::: moniker-end + These properties are backed by objects, which means that they can be targets of data bindings, and styled. The `Source` property can be set to an `UrlWebViewSource` object or a `HtmlWebViewSource` object, which both derive from `WebViewSource`. A `UrlWebViewSource` is used for loading a web page specified with a URL, while a `HtmlWebViewSource` object is used for loading a local HTML file, or local HTML.