Categories
Programación

Currency Converter for Entry in Xamarin

The idea is to Convert a string to currency in an Entry. Using an IConverter

The code is quite simple.

Currency Converter In Xamarin

Now on your Xaml App we need to add the Currency converter.

And now on our Property

Text=”{Binding Budget, Converter={StaticResource currencyConverter}}” />

And on our ViewModel:

Currency Converter IConverter Xamarin.

For more information on IConverter.

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *