Freigeben über


ColorUtilities.GetBrushFromCache(Color) Method

Definition

Get a brush that corresponds to a color. The brushes are stored in a cache.

public static System.Windows.Media.SolidColorBrush GetBrushFromCache (System.Windows.Media.Color color);
static member GetBrushFromCache : System.Windows.Media.Color -> System.Windows.Media.SolidColorBrush
Public Function GetBrushFromCache (color As Color) As SolidColorBrush

Parameters

color
Color

The color used to get the brush

Returns

The brush that corresponds to the color

Applies to