Skip to content

XForms/XForms.Converters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XForms.Converters

Converters for Xamarin.Forms

Name Input type Output type
InverseBoolConverter bool bool
IsEmptyConverter string bool
IsEmptyCollectionConverter ICollection bool

How to use

Add namespace on your page:

xmlns:converters="clr-namespace:XForms.Converters;assembly=XForms.Converters"

Add converters to resources:

<ResourceDictionary>

	<!-- Converters -->
	<converters:InverseBoolConverter x:Key="InverseBool" />
	<!-- ... -->
	
</ResourceDictionary>

Use on page:

<Label IsVisible="{Binding IsEnabled, Converter={StaticResource InverseBool}}" Text="XForms" />

Additional features

Multiple converters with ValueConverterGroup:

<converters:ValueConverterGroup x:Key="IsEmptyInverse">
	<converters:IsEmptyConverter />
	<converters:InverseBoolConverter />
</converters:ValueConverterGroup>

© 2016 Yauheni Pakala | MIT

Releases

No releases published

Packages

No packages published

Languages