Share via


Xamarin.CommunityToolkit.Converters Namespace

Classes

BoolToObjectConverter

Converts boolean to object and vice versa.

BoolToObjectConverter<TObject>

Converts System.Boolean to object and vice versa.

ByteArrayToImageSourceConverter

Converts the incoming value from System.Byte[] and returns the object of a type ImageSource or vice versa.

DateTimeOffsetConverter

Converts System.DateTimeOffset to System.DateTime and back.

DoubleToIntConverter

Converts System.Double to System.Int32 and vice versa.

EnumToBoolConverter

Convert an System.Enum to corresponding System.Boolean

EqualConverter

Checks whether the incoming value equals the provided parameter.

ImageResourceConverter

Converts embedded image resource ID to it ImageSource.

IndexToArrayItemConverter

Converts an System.Int32 index to corresponding array item and vice versa.

IntToBoolConverter

Converts an System.Int32 to corresponding System.Boolean and vice versa.

InvertedBoolConverter

Converts true to false and false to true. Simple as that!

IsNotNullOrEmptyConverter

Converts the incoming value to a System.Boolean indicating whether or not the value is not null and not empty.

IsNullOrEmptyConverter

Converts the incoming value to a System.Boolean indicating whether or not the value is null or empty.

ItemSelectedEventArgsConverter

Converts/Extracts the incoming value from SelectedItemChangedEventArgs object and returns the value of SelectedItem property from it.

ItemTappedEventArgsConverter

Converts/Extracts the incoming value from ItemTappedEventArgs object and returns the value of Item property from it.

ListIsNotNullOrEmptyConverter

Converts the incoming value to a System.Boolean indicating whether or not the value is not null and not empty.

ListIsNullOrEmptyConverter

Converts the incoming value to a System.Boolean indicating whether or not the value is null or empty.

ListToStringConverter

Concatenates the members of a collection, using the specified separator between each member.

MultiConverter

Converts an incoming value using all of the incoming converters in sequence.

MultiConverterParameter

Represents a parameter to be used in the MultiConverter.

NotEqualConverter

Checks whether the incoming value doesn't equal the provided parameter.

StateToBooleanConverter

This converter can be used with StateLayout to determine if a certain state is visible. This can be useful, for instance, in scenarios where you want to show/hide certain elements based on the current StateLayout.CurrentState. Additionally a StateLayout can be supplied in the parameter of the Convert method to compare against that.

TextCaseConverter

Converts text (string, char) to certain case as specified with Type or the parameter of the Convert method.

TimeSpanToDoubleConverter

Converts a System.TimeSpan to a System.Double value expressed in seconds.

VariableMultiValueConverter

The VariableMultiValueConverter is a converter that allows users to convert multiple System.Boolean value bindings to a single System.Boolean. It does this by enabling them to specify whether All, Any, None or a specific number of values are true as specified in ConditionType. This is useful when combined with the MultiBinding.

Enums

TextCaseType

The text cases that can be used with TextCaseConverter to convert text to a specific case.