transparentBackground property
Set to true
to make the background of the WebView transparent. If your app has a dark theme, this can prevent a white flash on initialization. The default value is false
.
Officially Supported Platforms/Implementations:
- Android native WebView
- iOS
- MacOS 12.0+
- Windows 1.0.774.44+ (Official API - ICoreWebView2Controller2.put_DefaultBackgroundColor)
Implementation
bool? transparentBackground;