BrushExtensions.

ToImmutable(IBrush) Method

Summary

Converts a brush to an immutable brush.
Namespace
Avalonia.Media
Containing Type
BrushExtensions

Syntax

public static IBrush ToImmutable(this IBrush brush)

Parameters

Name Type Description
brush IBrush The brush.

Return Value

Type Description
IBrush The result of calling ToImmutable() if the brush is mutable, otherwise brush.