title: Populating Textblock From LINQ Query (Web Service)
body: <p>I have written a Web Service that allows me to pull information from my SQL DB and display that information in my Universal Windows App. Currently I am displaying this information in a listbox. I would like to display this information in 3 separate textblocks and I am unsure of how to achieve that... This is currently what I have that works fine, but is placing it in a listbox:</p>
  
  <p><strong>Web Service</strong></p>
  
  <pre><code> [OperationContract]
   List&lt;TBL_My_Info&gt; FindInfo(string uid);
  
   public List&lt;TBL_My_Info&gt; FindInfo(string uid)
   {
      DataClasses1DataContext context = new DataClasses1DataContext();
      var res = from r in context.TBL_My_Info where r.User_Name == uid select r;
      return res.ToList();
   }
  </code></pre>
  
  <p><strong>XAML</strong></p>
  
  <pre><code>&lt;Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"&gt;
      &lt;ListBox Height="500" HorizontalAlignment="Left" 
       Margin="8,47,0,0" 
       Name="listBoxInfo" VerticalAlignment="Top" Width="440"&gt;
          &lt;ListBox.ItemTemplate&gt;
              &lt;DataTemplate&gt;
                  &lt;StackPanel Orientation="Vertical"&gt;
                      &lt;TextBlock Text="{Binding Title}" FontSize="14" TextWrapping="Wrap"/&gt;
                      &lt;TextBlock Text="{Binding Description}" FontSize="14" TextWrapping="Wrap"/&gt;
                      &lt;TextBlock Text="{Binding Name}" FontSize="14" TextWrapping="Wrap"/&gt;
                  &lt;/StackPanel&gt;
              &lt;/DataTemplate&gt;
          &lt;/ListBox.ItemTemplate&gt;
      &lt;/ListBox&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p><strong>Universal Web Application</strong></p>
  
  <pre><code>private void btnView_Click(object sender, RoutedEventArgs e)
  {
      string s = txtNameFind.Text;
      this.Content = new Page1(s);
  }       
  
   public Page1(string s)
  {
      this.InitializeComponent();
      LoadData(s);          
  }
  
  private async void LoadData(string s)
  {
      var client = new ServiceReference1.Service1Client();
      var res = await client.FindMyInfoAsync(s);
      listBoxInfo.ItemsSource = res;
  }
  </code></pre>
  
  <p>Basically what I am asking, is how can I get it to the 3 pieces of information to display in 3 separate textblocks, rather than in a listbox...</p>
  
  <p>Thanks</p>