menu

WinUI

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ContrastBrushConverter - WinUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ContrastBrushConverter

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

    Inheritance
    System.Object
    ContrastBrushConverter
    Implements
    Microsoft.UI.Xaml.Data.IValueConverter
    Namespace: Syncfusion.UI.Xaml.Core
    Assembly: Syncfusion.Core.WinUI.dll
    Syntax
    public class ContrastBrushConverter : Object, IValueConverter

    Constructors

    ContrastBrushConverter()

    Declaration
    public ContrastBrushConverter()

    Properties

    AlphaThreshold

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

    Declaration
    public byte AlphaThreshold { get; set; }
    Property Value
    Type
    System.Byte

    Methods

    Convert(Object, Type, Object, String)

    Declaration
    public object Convert(object value, Type targetType, object parameter, string language)
    Parameters
    Type Name Description
    System.Object value
    System.Type targetType
    System.Object parameter
    System.String language
    Returns
    Type
    System.Object

    ConvertBack(Object, Type, Object, String)

    Declaration
    public object ConvertBack(object value, Type targetType, object parameter, string language)
    Parameters
    Type Name Description
    System.Object value
    System.Type targetType
    System.Object parameter
    System.String language
    Returns
    Type
    System.Object

    Implements

    Microsoft.UI.Xaml.Data.IValueConverter
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved