SearchBox

The SearchBox control makes providing an in-app search experience relatively easy, with all the bells and whistles you would expect. However, this control is PC-only, at least for Windows 8.1.

When you place a SearchBox in your user interface, it looks just like a TextBox with an extra button for submitting the search. Like TextBox and the other text controls, it has a PlaceholderText property. You should use this to inform the user what kind of things he or she can search for within your app. The following SearchBox is shown in Figure 14.5:

<SearchBox PlaceholderText="Search Chapters"/>

Image

FIGURE 14.5

Get Universal Windows® Apps with XAML and C# 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.