WPF

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ContrastBrushConverter - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ContrastBrushConverter

    This class provides a binding converter to update foreground and background values for SfBadge control.

    Inheritance
    System.Object
    ContrastBrushConverter
    Implements
    System.Windows.Data.IMultiValueConverter
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Controls.Notification
    Assembly: Syncfusion.Tools.Wpf.dll
    Syntax
    public class ContrastBrushConverter : IMultiValueConverter

    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 Description
    System.Byte

    Methods

    Convert(Object[], Type, Object, CultureInfo)

    It assigns foreground value based on background value.

    Declaration
    public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
    Parameters
    Type Name Description
    System.Object[] values
    System.Type targetType

    The type of the target property, as a type reference.

    System.Object parameter

    Holds brush or color value.

    System.Globalization.CultureInfo culture

    The language of the conversion. Not used.

    Returns
    Type Description
    System.Object

    The value to be set for foreground property.

    ConvertBack(Object, Type[], Object, CultureInfo)

    Not implemented.

    Declaration
    public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
    Parameters
    Type Name Description
    System.Object value

    The target data being passed to the source.

    System.Type[] targetTypes
    System.Object parameter

    An optional parameter to be used in the converter logic.

    System.Globalization.CultureInfo culture
    Returns
    Type Description
    System.Object[]

    The value to be passed to the source object.

    Implements

    System.Windows.Data.IMultiValueConverter
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved