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.

LISTING 31.5. SearchLandingViewModel Class

class SearchLandingViewModel : ViewModelBase{    readonly ObservableCollection<ParameterInfo> parameters        = new ObservableCollection<ParameterInfo>();    public ObservableCollection<ParameterInfo> Parameters    {        get        {            return parameters;        }    } ...

Get Windows® Phone 8 Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.