New to Telerik UI for .NET MAUIStart a free 30-day trial

Converts a Thickness value to its inverse by negating all components.

Definition

Namespace:Telerik.Maui.Controls.Expander

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class InverseThicknessConverter : IValueConverter

Inheritance: objectInverseThicknessConverter

Implements: IValueConverter

Constructors

C#
public InverseThicknessConverter()

Methods

Converts a Thickness value to its inverse.

C#
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters:valueobject

The Thickness value to convert.

targetTypeType

The type of the binding target property.

parameterobject

The converter parameter to use.

cultureCultureInfo

The culture to use in the converter.

Returns:

object

A new Thickness with all components negated.

Converts a value back. This method is not implemented and throws NotImplementedException.

C#
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters:valueobject

The value that is produced by the binding target.

targetTypeType

The type to convert to.

parameterobject

The converter parameter to use.

cultureCultureInfo

The culture to use in the converter.

Returns:

object

A converted value.

Exceptions:

NotImplementedException

This method is not implemented.