EbaySearchViewModel Class

The viewmodel uses the IEbayClient instance to query the eBay OData service. The viewmodel exposes two commands:

Image SearchCommandTriggered by entering text into a TextBox in the view, this command calls the Search method, which calls the IEbayClient’s SearchItemsAsync method.

Image FetchMoreDataCommandThis command allows the search results to be paged.

The commands are initialized in the EbaySearchViewModel constructor, which is shown in the following excerpt:

public EbaySearchViewModel(    Func ...

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.