Language
Edit

ContrastBrushConverter Class

Definition

Gets a color, either black or white, depending on the brightness of the supplied color.

public class ContrastBrushConverter : Microsoft.UI.Xaml.Data.IValueConverter
type ContrastBrushConverter = class
    interface IValueConverter
Public Class ContrastBrushConverter
Implements IValueConverter
Inheritance
ContrastBrushConverter
Implements
Microsoft.UI.Xaml.Data.IValueConverter

Constructors

Name Description
ContrastBrushConverter()

Properties

Name Description
AlphaThreshold

Gets or sets the alpha channel threshold below which a default color is used instead of black/white.

Methods

Name Description
Convert(Object, Type, Object, String) Microsoft.UI.Xaml.Data.IValueConverter.Convert(System.Object,System.Type,System.Object,System.String)
ConvertBack(Object, Type, Object, String) Microsoft.UI.Xaml.Data.IValueConverter.ConvertBack(System.Object,System.Type,System.Object,System.String)

Applies to