Adding search to an app (Windows Store apps using C#/VB/C++ and XAML)

Language: JavaScript and HTML | VB/C#/C++ and XAML
This topic has not yet been rated - Rate this topic

Let users search with your app from anywhere in their system, including from your app. Users will be able to use the Search charm to open a search pane where they can enter search queries and select your app to display their search results. To add search to your app you must participate in the Search contract.

The search pane that is opened by the Search charm consists of:

  • A touch-friendly search box
  • Touch-friendly search suggestions
  • An integrated IME (input method editor) for east Asian languages
  • A list of apps that users can get search results from

Some aspects of the search pane can be customized to better fit the needs of apps and their users.

Tip  You can use shortcut keys to access the charms, including the Search charm. The Windows Logo Key + C lets you select any of the charms, and the Windows Logo Key + Q selects the Search charm.

A screen capture of the search pane.

 

Search results will be displayed by your app. You must design and create a view for your app that displays the user's search results in a way that is coherent and relevant to the user's needs and that aligns with the purpose of your app.

See Guidelines and checklist for search to learn about creating a good search experience for your users.

A cropped screen shot of the search results view that was provided by the BUILD app for the conference (results view is partially occluded by the search pane),

In this section

TopicDescription

Quickstart

Let users search your Windows Store app by adding the Search contract. When you add the Search contract, users can search your app from anywhere in their system by selecting the Search charm.

 

Additionally, you can try working with the Search charm and other key Windows 8 features by downloading the hands-on labs for Windows 8. These labs provide a modular, step-by-step introduction to creating a sample Windows Store app in the programming language of your choice (JavaScript and HTML or C# and XAML).

Related topics

Guidelines and checklist for search

 

 

Build date: 10/26/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.