O'Reilly logo

Mastering Xamarin UI Development - Second Edition by Steven F. Daniel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating and implementing ValueConverters in your app

In this section, we will begin creating the ImageConverter class for our TrackMyWalks solution. ValueConverters are an important concept in data binding, as they allow you to customize the appearance of a data property at the time it is bound. This process is quite similar to Windows Presentation Foundation (WPF) on the Windows application development platform.

The Xamarin.Forms platform provides you with a number of ValueConverter interfaces as part of its API. These are extremely helpful as they allow you to toggle the visibility of elements based on a Boolean property, or display an image based on a String property.

Let's start creating the ImageConverter class for our TrackMyWalks ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required