alexa
menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class BooleanToTooltipConverter

    Represents BooleanToToolTipConverter which represents converter for converting boolean to tooltip value

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

    Constructors

    BooleanToTooltipConverter()

    Declaration
    public BooleanToTooltipConverter()

    Methods

    Convert(Object, Type, Object, CultureInfo)

    Converts a value.

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

    The value produced by the binding source.

    System.Type targetType

    The type of the binding target property.

    System.Object parameter

    The converter parameter to use.

    System.Globalization.CultureInfo culture

    The culture to use in the converter.

    Returns
    Type Description
    System.Object

    A converted value. If the method returns null, the valid null value is used.

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

    Converts multiple input values into a tooltip UI element if tooltip display is enabled and the value is valid.

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

    An array where the first element is a boolean indicating tooltip enablement, and the second is the value to display.

    System.Type targetType

    The target type of the binding (not used).

    System.Object parameter

    An optional parameter for conversion (not used).

    System.Globalization.CultureInfo culture

    The culture to use in the converter (not used).

    Returns
    Type Description
    System.Object

    A System.Windows.Controls.StackPanel containing a System.Windows.Controls.TextBlock with the tooltip text if enabled and valid; otherwise, null.

    ConvertBack(Object, Type, Object, CultureInfo)

    Converts a value.

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

    The value that is produced by the binding data target.

    System.Type targetType

    The type to convert to.

    System.Object parameter

    The converter parameter to use.

    System.Globalization.CultureInfo culture

    The culture to use in the converter.

    Returns
    Type Description
    System.Object

    A converted value. If the method returns null, the valid null value is used.

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

    Not implemented. Converts a tooltip UI element back to its original values.

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

    The value produced by the binding target.

    System.Type[] targetTypes

    The array of types to convert to.

    System.Object parameter

    An optional parameter for conversion.

    System.Globalization.CultureInfo culture

    The culture to use in the converter.

    Returns
    Type Description
    System.Object[]

    This method always throws a System.NotImplementedException as reverse conversion is not supported.

    Implements

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