如何在Windows Phone 8.1中添加搜索框控件?
我在WP8中使用了搜索框,如下所示
如何在Windows Phone 8.1中使用它?
如果要添加任何新控件或新命名空间,请告诉我。?
<StackPanel Orientation="Horizontal" Margin="0,8,0,0" Visibility="Collapsed" x:Name="SearchPanel">
<toolkit:PhoneTextBox Hint="Search" x:Name="tbxSearch" Width="340"
ActionIcon="/Images/appbar.feature.search.rest.png"
ActionIconTapped="Search_ActionIconTapped"/>
<Image x:Name="speaker" Source="/Images/microphone1.png" Height="48" Width="48" MouseLeftButtonDown="speaker_MouseLeftButtonDown_1"></Image>
</StackPanel>
答案 0 :(得分:1)
您必须添加System.Windows.Controls.Orientation
名称空间,因为这些是控件。然后你可以参考
https://msdn.microsoft.com/en-in/library/windows/apps/bg182890.aspx,
http://www.geekchamp.com/articles/windows-phone-toolkit-phonetextbox-in-depth其他说明