Share via


VisibilityInvertConverter.Convert Method

Convert Visibility.Visible to Visibility.Collapsed (or Visibility.Hidden if parameter contains "Hidden") and Visibility.Collapsed or Visibility.Hidden to Visibility.Visible.

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

Syntax

'Declaration
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
)
public:
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

Parameters

  • targetType
    Type: System.Type

    output type - Must be Visibility

  • parameter
    Type: System.Object

    comma-separated options. "Hidden" to have Visibility.Hidden (where the default is Visibility.Collapsed).

Return Value

Type: System.Object
inverted Visibility

Implements

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

.NET Framework Security

See Also

Reference

VisibilityInvertConverter Class

Microsoft.TeamFoundation.Controls.WPF.Converters Namespace