Jump to: navigation, search

Difference between revisions of "Converters In Mobile"


(→‎Converters in Xamarin)
Line 19: Line 19:
 
|-  
 
|-  
 
| ClassificationToBoolConverter || ✗ || Returns a '''boolean''' indicating whether the given '''ContentViewModel''' is successfully classified.
 
| ClassificationToBoolConverter || ✗ || Returns a '''boolean''' indicating whether the given '''ContentViewModel''' is successfully classified.
 +
|-
 +
| ContainsToBoolConverter || ✗ || Checks if the delivered value is '''contained''' within a collection of values (delivered in the parameter, seperated with <nowiki>|</nowiki>). If the value is contained, ''true'' will be returned, else ''false''. The functionality is similar to the ''ContainsToVisibilityConverter'' in the WinX project.
 +
|-
 +
| ContainsToInvertedBoolConverter || ✗ || Same as the ''ContainsToBoolConverter'', but with '''inverted output'''. The functionality is similar to the ''ContainsToVisibilityConverter'' in the WinX project.
 
|}
 
|}
  
 
===Usage===
 
===Usage===
 
<Shortly describe how to use the activity ...>
 
<Shortly describe how to use the activity ...>

Revision as of 13:48, 1 August 2019

Converters in Xamarin

This page lists all currently available converters for customizing Xamarin XAML. This Page is WIP!!!

Converter 2-Way Description
BooleanConverter ✓ Interprets the boolean value and returns it. If the value cannot be interpreted, false is returned.
BooleanInvertConverter ✓ Interprets and converts a boolean into its inverted value. If the value cannot be interpreted, false is returned.
BooleanToFontAttributeConverter ✗ Converts a boolean into a [font attribute] value. In detail, if the value is true, the parameter is interpreted (Bold, Italic, None) and returned. The default returned font-attribute is None.
ByteToImageSourceValueConverter ✗ Converts a byte stream value into an image source.
ChildAreaTemplateConverter ✗ Returns a ChildAreaTemplate from a ContentViewModel or null if the ViewModel cannot be interpreted.
ChildItemSelectionModeToSfListViewSelectionModeConverter ✓ Converts a ChildItemSelectionMode to [Syncfusion's ListViewSelectionMode]. Default is "Single".
ClassificationToBoolConverter ✗ Returns a boolean indicating whether the given ContentViewModel is successfully classified.
ContainsToBoolConverter ✗ Checks if the delivered value is contained within a collection of values (delivered in the parameter, seperated with |). If the value is contained, true will be returned, else false. The functionality is similar to the ContainsToVisibilityConverter in the WinX project.
ContainsToInvertedBoolConverter ✗ Same as the ContainsToBoolConverter, but with inverted output. The functionality is similar to the ContainsToVisibilityConverter in the WinX project.

Usage

<Shortly describe how to use the activity ...>