Dela via


WebView.DefaultBackgroundColor Property

Definition

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