ColorToSolidColorBrushConverter Class

Summary

Converts a given Color into a SolidColorBrush.
Namespace
MahApps.Metro.Converters
Base Types
  • IValueConverter
graph BT Type-->Base0["IValueConverter"] Type["ColorToSolidColorBrushConverter"] class Type type-node

Syntax

[ValueConversion(typeof(Color), typeof(SolidColorBrush))]
public class ColorToSolidColorBrushConverter : IValueConverter

Attributes

Type Description
ValueConversion

Properties

Name Value Summary
DefaultInstance ColorToSolidColorBrushConverter
Gets a static instance of the converter if needed.
static
FallbackBrush SolidColorBrush
Gets or Sets the brush which will be used if the conversion fails.
FallbackColor Color?
Gets or Sets the color which will be used if the conversion fails.

Methods