Skip to main content

Component Plug-In SDK 2026 R1

Class BooleanInvertConverter

Last update: 19.06.2026

Namespace: Phoenix.BuilderUIClient
Assembly: Phoenix.BuilderUIClient.dll

A value converter class that will invert the value of a boolean in a xaml binding

public class BooleanInvertConverter : MarkupExtension, IValueConverter

Inheritance

object ← MarkupExtension ← BooleanInvertConverter

Implements

IValueConverter

Inherited Members

MarkupExtension.ProvideValue(IServiceProvider), object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()

Remarks

This is a copy from MCMBSE, and should ideally live in a shared WPF utilities project.

Methods

Convert(object, Type, object, CultureInfo)

Negates a value

ConvertBack(object, Type, object, CultureInfo)

Negates a value

ProvideValue(IServiceProvider)

Returns this object as the value of the target property for this markup extension. This allows you to do something like this:

Value="{Binding IsOpen, Mode=OneWay, Converter={converter:BoolInvertConverter}}"

instead of having to pull in the converter as a static resource.

Connect with Ansys