In This Article

BrushExtensions Class

Provides extension methods for the type Brush.

public static class BrushExtensions
Inheritance:
object object

Methods

Tint(Brush, Color, bool)

Returns a clone of the specified Brush that has been tinted towards the specified Color.

public static Brush Tint(this Brush brush, Color tintColor, bool freeze = true)
Parameter Type Description
brush Brush

The Brush to clone and tint. Only SolidColorBrush and GradientBrush support tinting.

tintColor Color

The tint Color.

freeze bool

if set to true then the Brush will be frozen before it is returned. The default value is true.

Returns

Brush

Inherited Members