Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

WebView.DefaultBackgroundColor Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets or sets the color to use as the WebView background when the HTML content does not specify a color.

public:
 property Color DefaultBackgroundColor { Color get(); void set(Color value); };
Color DefaultBackgroundColor();

void DefaultBackgroundColor(Color value);
public Color DefaultBackgroundColor { get; set; }
var color = webView.defaultBackgroundColor;
webView.defaultBackgroundColor = color;
Public Property DefaultBackgroundColor As Color
<WebView DefaultBackgroundColor="predefinedColorName"/>
- or -
<WebView DefaultBackgroundColor="#rgb"/>
- or -
<WebView DefaultBackgroundColor="#argb"/>
- or -
<WebView DefaultBackgroundColor="#rrggbb"/>
- or -
<WebView DefaultBackgroundColor="#aarrggbb"/>
- or -
<WebView DefaultBackgroundColor="sc#scR,scG,scB"/>
- or -
<WebView DefaultBackgroundColor="sc#scA,scR,scG,scB"/>

Property Value

The background color.

Applies to


Feedback

Was this page helpful?