TrueToVisibleConverter.Convert Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Converts true of bool (or bool?) to Visibility.Visible and any other value to Visibility.Collapsed (or Visibility.Hidden if parameter contains "Hidden").

If the parameter contains "Not", "!", or "Invert", the result is inverted before converting to Visibility.

Namespace:  Microsoft.TeamFoundation.Controls.WPF.Converters
Assembly:  Microsoft.TeamFoundation.Controls (in Microsoft.TeamFoundation.Controls.dll)


Public Overridable Function Convert ( _
    value As Object, _
    targetType As Type, _
    parameter As Object, _
    culture As CultureInfo _
) As Object
public virtual Object Convert(
    Object value,
    Type targetType,
    Object parameter,
    CultureInfo culture
virtual Object^ Convert(
    Object^ value, 
    Type^ targetType, 
    Object^ parameter, 
    CultureInfo^ culture
abstract Convert : 
        value:Object * 
        targetType:Type * 
        parameter:Object * 
        culture:CultureInfo -> Object  
override Convert : 
        value:Object * 
        targetType:Type * 
        parameter:Object * 
        culture:CultureInfo -> Object
public function Convert(
    value : Object, 
    targetType : Type, 
    parameter : Object, 
    culture : CultureInfo
) : Object


  • targetType
    Type: System.Type

    output type - Must be Visibility

  • parameter
    Type: System.Object

    comma-separated options. "Not", "!", or "Invert" to invert the bool evaluation result before converting to Visibility. "Hidden" to have Visibility.Hidden instead of the default Visibility.Collapsed.

Return Value

Type: System.Object
converted Visibility


IValueConverter.Convert(Object, Type, Object, CultureInfo)

.NET Framework Security

See Also


TrueToVisibleConverter Class

Microsoft.TeamFoundation.Controls.WPF.Converters Namespace