Walter Fabio Simoni
Walter Fabio Simoni

Reputation: 5729

Search control on WP7/WP7.5

Could anyone tell me which controls are used in WP7 / WP7.5 where we go on e-mails reading, and when we click on the "search" button?

It appears on the top of a searchbox (a TextBox) and the middlle/bottom of the page is a little blurred. I need to code an application like this, and I don"t know which control to use.

Thanks a lot.

Best regards

Upvotes: 0

Views: 188

Answers (2)

Arun
Arun

Reputation: 3456

You can use a TextBox and a list box to show the searched result. If you want you can use an image button to show search icon. You can use this button's click event to perform the search operation and can show the result in the listbox below.

Upvotes: 0

jbkkd
jbkkd

Reputation: 1550

There's no one control that does the exact scenario you described.

You'll have to add a Textbox and a list for search on the bottom by yourself. Then, respond when the user hits the the "Enter" key, like so:

XAML:

<TextBox Name="textBox1" KeyDown="OnKeyDownHandler"/>

C#:

private void OnKeyDownHandler(object sender, KeyEventArgs e)
{
    if (e.Key == Key.Enter)
    {
        //Search the data source you want
    }
}

Upvotes: 1

Related Questions