WebView2.DefaultBackgroundColor プロパティ

定義

HTML コンテンツで色が指定されていない場合に WebView2 の背景として使用する色を取得または設定します。

public:
 property Color DefaultBackgroundColor { Color get(); void set(Color value); };
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="WebView2::sc_controllerDefaultBackgroundColor")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="WebView2::sc_controllerDefaultBackgroundColor")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="WebView2::sc_controllerDefaultBackgroundColor")]
Color DefaultBackgroundColor();

void DefaultBackgroundColor(Color value);
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="WebView2::sc_controllerDefaultBackgroundColor")]
public Color DefaultBackgroundColor { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="WebView2::sc_controllerDefaultBackgroundColor")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="WebView2::sc_controllerDefaultBackgroundColor")] set; }
var color = webView2.defaultBackgroundColor;
webView2.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"/>

プロパティ値

背景色。

属性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

適用対象