Note that there are some explanatory texts on larger screens.

plurals
  1. POunable to bind JSON data to list in windows phone 8
    primarykey
    data
    text
    <p>Im new to phone development, When I bind JSON data to list box in c#, I get a blank screen, my list is not getting populated,I get my JSON response from web service successfully,My code is as follows</p> <pre><code> public void callbackwall(object sender, UploadStringCompletedEventArgs e) { string json = e.Result.ToString(); if (!string.IsNullOrEmpty(json)) { var example = JsonConvert.DeserializeObject&lt;List&lt;listreadqueries&gt;&gt;(json); ServerList.ItemsSource = example; } } public class readqueriesObject { public string customer_read_status { get; set; } public string description { get; set; } public string Inserted_Date { get; set; } public string Query_From_Id { get; set; } public string Query_From_Name { get; set; } public string Query_Id { get; set; } public string Query_Status { get; set; } public string Query_To_Id { get; set; } public string Query_To_Name { get; set; } public string title { get; set; } public int count { get; set; } public List&lt;object&gt; historyList { get; set; } public string Query_Type { get; set; } } public class listreadqueries { public List&lt;readqueriesObject&gt; queries { get; set; } } } </code></pre> <p>}</p> <p>The JSON response im getting is <code>[{"customer_read_status":"read","description":"Maecenas nec elit metus. Donec porttitor porttitor felis vitae hendrerit. Sed a interdum magna amet.\r\n","Inserted_Date":"Aug 14, 2013 at 01:22"},{....},{..}]</code></p> <p>My XAML code is as follows</p> <pre><code> &lt;ListBox.ItemTemplate&gt; &lt;DataTemplate&gt; &lt;StackPanel Margin="0,0,0,20" Width="300"&gt; &lt;TextBlock Text="{Binding Path=description}" /&gt; &lt;/StackPanel&gt; &lt;/DataTemplate&gt; &lt;/ListBox.ItemTemplate&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload