Difference between revisions of "Converters In Xamarin"
(→Converters in Xamarin) |
|||
Line 6: | Line 6: | ||
! Converter !! 2-Way !! Description | ! Converter !! 2-Way !! Description | ||
|- | |- | ||
− | | BooleanConverter || ✓ || Interprets the '''boolean value''' and returns it. If the value cannot be interpreted, ''false'' is returned. | + | | BooleanConverter || style="text-align: center;" | ✓ || 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. | + | | BooleanInvertConverter || style="text-align: center;" | ✓ || Interprets and converts a '''boolean''' into its '''inverted value'''. If the value cannot be interpreted, ''false'' is returned. |
|- | |- | ||
− | | BooleanToFontAttributeConverter || ✗ || Converts a '''boolean''' into a '''[[https://docs.microsoft.com/en-us/dotnet/api/xamarin.forms.fontattributes?view=xamarin-forms 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''. | + | | BooleanToFontAttributeConverter || style="text-align: center;" | ✗ || Converts a '''boolean''' into a '''[[https://docs.microsoft.com/en-us/dotnet/api/xamarin.forms.fontattributes?view=xamarin-forms 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'''. | + | | ByteToImageSourceValueConverter || style="text-align: center;" | ✗ || Converts a '''byte stream''' value into an '''image source'''. |
|- | |- | ||
− | | ChildAreaTemplateConverter || ✗ || Returns a '''ChildAreaTemplate''' from a '''ContentViewModel''' or ''null'' if the ViewModel cannot be interpreted. | + | | ChildAreaTemplateConverter || style="text-align: center;" | ✗ || Returns a '''ChildAreaTemplate''' from a '''ContentViewModel''' or ''null'' if the ViewModel cannot be interpreted. |
|- | |- | ||
− | | ChildItemSelectionModeToSfListViewSelectionModeConverter || ✓ || Converts a '''ChildItemSelectionMode''' to '''[[https://help.syncfusion.com/cr/cref_files/xamarin/Syncfusion.SfListView.XForms~Syncfusion.ListView.XForms.SfListView~SelectionMode.html Syncfusion's ListViewSelectionMode]]'''. Default is "Single". | + | | ChildItemSelectionModeToSfListViewSelectionModeConverter || style="text-align: center;" | ✓ || Converts a '''ChildItemSelectionMode''' to '''[[https://help.syncfusion.com/cr/cref_files/xamarin/Syncfusion.SfListView.XForms~Syncfusion.ListView.XForms.SfListView~SelectionMode.html Syncfusion's ListViewSelectionMode]]'''. Default is "Single". |
|- | |- | ||
− | | ClassificationToBoolConverter || ✗ || Returns a '''boolean''' indicating whether the given '''ContentViewModel''' is successfully classified. | + | | ClassificationToBoolConverter || style="text-align: center;" | ✗ || 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. | + | | ContainsToBoolConverter || style="text-align: center;" | ✗ || 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. | + | | ContainsToInvertedBoolConverter || style="text-align: center;" | ✗ || Same as the ''ContainsToBoolConverter'', but with '''inverted output'''. The functionality is similar to the ''ContainsToVisibilityConverter'' in the WinX project. |
+ | |- | ||
+ | | ContentAreaTeamplateConverter || style="text-align: center;" | ✗ || This converter is '''not yet finished''' and just returns the ''UBIKContentArea'' if the value is a ''ContentViewModel''. | ||
|} | |} | ||
===Usage=== | ===Usage=== | ||
<Shortly describe how to use the activity ...> | <Shortly describe how to use the activity ...> |
Revision as of 14:00, 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. |
ContentAreaTeamplateConverter | ✗ | This converter is not yet finished and just returns the UBIKContentArea if the value is a ContentViewModel. |
Usage
<Shortly describe how to use the activity ...>