Creating a Landing Page to Display Quick Card Information
The landing page for the sample is the SearchLandingView.xaml page, whose viewmodel is the SearchLandingViewModel
class; see Listing 31.5.
An ObservableCollection
of query string parameters is populated via the LoadUriParameters
when the page is navigated to. The custom ParameterInfo
class contains two string properties: Key
and Value
.
class SearchLandingViewModel : ViewModelBase{ readonly ObservableCollection<ParameterInfo> parameters = new ObservableCollection<ParameterInfo>(); public ObservableCollection<ParameterInfo> Parameters { get { return parameters; } } ...
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.