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. |
|- | |- | ||
− | | | + | | 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 '''[[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'''. | ||
+ | |- | ||
+ | | ChildAreaTemplateConverter || ✗ || 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". | ||
+ | |- | ||
+ | | ClassificationToBoolConverter || ✗ || Returns a '''boolean''' indicating whether the given '''ContentViewModel''' is successfully classified. | ||
|} | |} | ||
===Usage=== | ===Usage=== | ||
<Shortly describe how to use the activity ...> | <Shortly describe how to use the activity ...> |
Revision as of 13:25, 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. |
Usage
<Shortly describe how to use the activity ...>