Example: Searching Asynchronously for Images with ReactiveUI

In this section, we'll create an application that searches the public Flickr database of images. The user will enter a term and when the user stops typing, we'll search for images that match the requested topics, as shown in Figure 8-1. This will exercise the ReactiveUI library and illustrate real-world usage of many of the techniques we've described.

images

Figure 8-1. The completed project: searching Flickr

Design the App for MVVM

A key goal of the ReactiveUI library is to facilitate creating programs using the MVVM pattern. This program will create the following two classes:

  • MainWindow ...

Get Programming Reactive Extensions and LINQ 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.