WebView Control Properties  
 
Property Description
AllowMessages Enables message passing between the host and the current page.
AllowNavigation Determines whether the control is allowed to navigate to new URLs.
AllowScripting Enables JavaScript execution in the page. Disabling this can negatively impact most modern websites.
AllowZoom Allows user zoom in and out using the keyboard interface, but does not impact programmatic zoom.
Appearance Sets the visual appearance of the control's frame and does not affect page rendering.
AutoFill Allows the browser to store and suggest form data.
BackColor Background color used behind the page and during initial rendering.
BorderStyle Specifies the window border style for the control and does not change page layout.
BrowserVersion Returns a string which identifies the WebView2 runtime version used by this instance.
CanGoBack Determines if there is a previous page in the navigation history.
CanGoForward Determines if there is a next page in the navigation history.
Certificate Returns information about the TLS server certificate for the last secure navigation.
ContentType Returns the content type from the last response, preserved until the next navigation.
ContextMenu Shows or hides the built-in right-click context menu inside the browser view.
DataFolder Gets and sets the path to the user data folder used by this instance.
DevTools Enables access to the browser developer tools (F12).
DocumentText Gets and sets the contents of the current page.
DocumentTitle Returns the page title from the current document.
Enabled Determines whether the control is enabled and the user can interact with the browser.
Encryption Returns details about the current secure connection when available.
FooterText Gets and sets the text displayed in the footer of each printed page.
FilteredText Returns the current document text without HTML formatting.
Focused Indicates whether the embedded browser currently has the input focus.
HeaderText Gets and sets the text displayed in the header of each printed page.
HttpStatus Returns the HTTP status code from the last completed navigation.
InPrivate Enables or disables private browsing for the current session.
IsInitialized Determines if the environment and core control have been successfully created.
IsMuted Determines if audio playback has been muted on the current page.
IsNavigating Determines if a navigation is in progress prior to completion or cancellation.
Language Gets and sets the language used to display context menus and dialogs in the browser.
LastError returns a pointer to a numeric error code which specifies the most recent error condition.
LastErrorString returns a pointer to a descriptive message for the most recent error condition.
LocalFile Returns the full path to a local file displayed in the browser if applicable.
MarginBottom Gets and sets the bottom margin of the printed page, in inches.
MarginLeft Gets and sets the left margin of the printed page, in inches.
MarginRight Gets and sets the right margin of the printed page, in inches.
MarginTop Gets and sets the top margin of the printed page, in inches.
Message Returns the most recent message sent from the current document.
MessageSource Returns the source URI for the most recent message.
Normalize Determines if URLs are normalized and validated before navigation.
PageHeight Gets and sets the height of the printed page, in inches.
PageWidth Gets and sets the width of the printed page, in inches.
PrintBackground Determines whether background colors and images are included when printing a document.
PrintColorMode Determines whether to use color or grayscale mode when printing a document.
PrintDialog Determines whether the browser's print dialog is displayed or the document is printed directly.
PrintHeaders Determines whether headers and footers are included when printing a document.
PrinterName Gets and sets the name of the printer used when printing a document without displaying the print dialog.
PrintOrientation Determines whether the document is printed in portrait or landscape orientation.
PrintScale Gets and sets the scaling factor applied to the document when printing.
Redirected Indicates whether the last navigation followed one or more HTTP redirects.
RuntimeAvailable Determines whether the Microsoft Edge WebView2 runtime is available on the system.
SavePasswords Allows the browser to offer to save and auto-fill website passwords.
Secure Determines if the current page was retrieved securely with no security warnings.
SecurityLevel Returns the overall security level for the current page.
StatusBar Determines if the browser shows status text in the bottom-left corner.
Timeout Gets and sets a navigation timeout period in seconds. A value of zero uses the browser's default behavior.
Url Gets or sets the current browser address. Setting this property initiates navigation to the specified URL.
UserAgent Gets or sets the user-agent string used for requests made by this instance.
UserInitiated Indicates whether the last navigation resulted from a user gesture rather than a script.
Version Gets the current version of the control.
ZoomLevel Gets or sets the current zoom factor, applying page scaling without changing layout.