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

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 ...

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