Skip to content

Latest commit

 

History

History
51 lines (42 loc) · 2.47 KB

webview_defaultbackgroundcolor.md

File metadata and controls

51 lines (42 loc) · 2.47 KB
-api-id -api-type
P:Windows.UI.Xaml.Controls.WebView.DefaultBackgroundColor
winrt property

Windows.UI.Xaml.Controls.WebView.DefaultBackgroundColor

-description

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

-xaml-syntax

<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"/>

-xaml-values

predefinedColorName
predefinedColorNameOne of the colors predefined by the Colors class (static properties), specified by the name of that property and color.
rgb
rgbA three-character hexadecimal value. The first character specifies the color's R value, the second character specifies the G value, and the third character specifies the B value. For example, #00F.
argb
argbA four-character hexadecimal value. The first character specifies the color's A value, the second character specifies its R value, the third character specifies the G value, and the fourth character specifies its B value. For example, #F00F.
rrggbb
rrggbbA six-character hexadecimal value. The first two characters specify the color's R value, the next two specify its G value, and the final two specify its B value. For example, #0000FF.
aarrggbb
aarrggbbAn eight-character hexadecimal value. The first two characters specify the color's A value, the next two specify its R value, the next two specify its G value, and the final two specify its B value. For example, #FF0000FF.
scA
scAThe color's ScA value as a value between 0 and 1. ScA is not exposed as a Color property directly.
scR
scRThe color's ScR value as a value between 0 and 1. ScR is not exposed as a Color property directly.
scG
scGThe color's ScG value as a value between 0 and 1. ScG is not exposed as a Color property directly.
scB
scBThe color's ScB value as a value between 0 and 1. ScB is not exposed as a Color property directly.
## -property-value The background color.

-remarks

-examples

-see-also