Skip to content

Instantly share code, notes, and snippets.

@grimorde
Created February 20, 2020 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grimorde/f6bfc3d5cdf763bc01e587cc369fe86d to your computer and use it in GitHub Desktop.
Save grimorde/f6bfc3d5cdf763bc01e587cc369fe86d to your computer and use it in GitHub Desktop.
Declaring your converter
<?xml version="1.0" encoding="utf-8" ?>
<Application xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:converter="clr-namespace:MyApp.Converter;assembly=MyApp"
x:Class="MyApp.App">
<Application.Resources>
<ResourceDictionary>
<converter:ItemTappedEventArgsConverter x:Key="ItemTappedEventArgsConverter" />
<converter:FirstValidationErrorConverter x:Key="FirstValidationErrorConverter" />
<converter:BooleanNegationConverter x:Key="Inverter" />
</ResourceDictionary>
</Application.Resources>
</Application>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment