ContrastBrushConverter Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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) |