O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

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

Using the Route Calculator

The MapViewModel class contains two string properties: FromAddress and ToAddress, which are populated using two TextBox controls in the view.

When the viewmodel’s RouteSearchCommand is executed, the viewmodel’s Message property and a Busy Boolean flag are set, which are materialized using the ProgressIndicator of the page’s System Tray, as shown:

<shell:SystemTray.ProgressIndicator>    <shell:ProgressIndicator IsIndeterminate="{Binding Busy}"                                IsVisible="{Binding Busy}"                                Text="{Binding Message}" /></shell:SystemTray.ProgressIndicator>

The SearchRoute method then awaits for the result of the RouteCalculator object’s CalculateAsync ...

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