MaterialExtensions.

ToImmutable(IExperimentalAcrylicMaterial) Method

Summary

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

Syntax

public static IExperimentalAcrylicMaterial ToImmutable(this IExperimentalAcrylicMaterial material)

Parameters

Name Type Description
material IExperimentalAcrylicMaterial The brush.

Return Value

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