Searching for a Route Using the View
The MapView
page contains a Border
control named RouteSearchView. This control is used to prompt the user for the origin (from) and destination (to) addresses (see Figure 18.2).
A visual state is used to hide and show the Border
. When the Border
is shown, it provides the user with the means to enter two addresses. When the user taps the Search button, the viewmodel’s SearchCommand
executes.
The following excerpt shows the RouteSearchView Border
:
<Border x:Name="RouteSearchView" Height ...
Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.