Xamarin.CommunityToolkit.Converters Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Bool |
Converts boolean to object and vice versa. |
Bool |
Converts System.Boolean to object and vice versa. |
Byte |
Converts the incoming value from System.Byte[] and returns the object of a type ImageSource or vice versa. |
Date |
Converts System.DateTimeOffset to System.DateTime and back. |
Double |
Converts System.Double to System.Int32 and vice versa. |
Enum |
Convert an System.Enum to corresponding System.Boolean |
Equal |
Checks whether the incoming value equals the provided parameter. |
Image |
Converts embedded image resource ID to it ImageSource. |
Index |
Converts an System.Int32 index to corresponding array item and vice versa. |
Int |
Converts an System.Int32 to corresponding System.Boolean and vice versa. |
Inverted |
Converts true to false and false to true. Simple as that! |
Is |
Converts the incoming value to a System.Boolean indicating whether or not the value is not null and not empty. |
Is |
Converts the incoming value to a System.Boolean indicating whether or not the value is null or empty. |
Item |
Converts/Extracts the incoming value from SelectedItemChangedEventArgs object and returns the value of SelectedItem property from it. |
Item |
Converts/Extracts the incoming value from ItemTappedEventArgs object and returns the value of Item property from it. |
List |
Converts the incoming value to a System.Boolean indicating whether or not the value is not null and not empty. |
List |
Converts the incoming value to a System.Boolean indicating whether or not the value is null or empty. |
List |
Concatenates the members of a collection, using the specified separator between each member. |
Multi |
Converts an incoming value using all of the incoming converters in sequence. |
Multi |
Represents a parameter to be used in the MultiConverter. |
Not |
Checks whether the incoming value doesn't equal the provided parameter. |
State |
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. |
Text |
Converts text (string, char) to certain case as specified with Type or the parameter of the Convert method. |
Time |
Converts a System.TimeSpan to a System.Double value expressed in seconds. |
Variable |
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. |
Text |
The text cases that can be used with TextCaseConverter to convert text to a specific case. |