SolidColorBrush.

SolidColorBrush(Color, double) Constructor

Summary

Initializes a new instance of the SolidColorBrush class.
Namespace
Avalonia.Media
Containing Type
SolidColorBrush

Syntax

public SolidColorBrush(Color color, double opacity = 1)

Parameters

Name Type Description
color Color The color to use.
opacity double The opacity of the brush.

Return Value

Type Description
void