title: Adding a searchbox in my windows phone 7 application
body: <p>I am building an application for Windows Phone 7 where i need to add a search box which should look like this:</p>
  
  <p><img src="https://i.stack.imgur.com/vIGNu.png" alt="enter image description here"></p>
  
  <p>Now on trying to type something here it should display the data that is present in the webservice. Suppose someone types the letter "A" it should display the data starting with A from the Web service. Please give me some idea on how to do this.</p>
  
  <p>My xaml:</p>
  
  <pre><code>&lt;toolkit:AutoCompleteBox x:Name="acBox" FilterMode="Custom" Width="344" Canvas.Left="53" Canvas.Top="6" Height="72"&gt;.
                  &lt;toolkit:AutoCompleteBox.ItemTemplate&gt;
                      &lt;DataTemplate&gt;
                          &lt;StackPanel Orientation="Horizontal"&gt;
                              &lt;Image Source="{Binding Image}" Stretch="None" Margin="0,0,5,5"/&gt;
                              &lt;TextBlock Text="{Binding Name}"/&gt;
                          &lt;/StackPanel&gt;
                      &lt;/DataTemplate&gt;
                  &lt;/toolkit:AutoCompleteBox.ItemTemplate&gt;
              &lt;/toolkit:AutoCompleteBox&gt;
  </code></pre>
  
  <p>Cs file:</p>
  
  <pre><code>public City()
      {
          InitializeComponent();
  
          this.acBox.ItemFilter = Search;
          LoadData();
      }
  
      bool Search(string search, object value)
      {
          //
      } 
  </code></pre>
  
  <p>// here i want to search from the web service. </p>