0

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

4

2 回答 2

1

没有一个控件可以执行您描述的确切场景。

您必须自己在底部添加一个文本框和一个搜索列表。然后,当用户按下“Enter”键时做出响应,如下所示:

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
    }
}
于 2012-12-25T15:02:53.170 回答
0

您可以使用文本框和列表框来显示搜索结果。如果您愿意,可以使用图像按钮显示搜索图标。您可以使用此按钮的单击事件来执行搜索操作,并可以在下面的列表框中显示结果。

于 2012-12-28T10:19:06.950 回答