Bind a List property of an object to a ListView
<p>I try to work with the openweathermap api (5 days forecast). I've generated the json to C# code which looks like this: </p>

<pre><code>[DataContract]
public class Main
{
    [DataMember]
    public double temp { get; set; }
    [DataMember]
    public double temp_min { get; set; }
    [DataMember]
    public double temp_max { get; set; }
    [DataMember]
    public double pressure { get; set; }
    [DataMember]
    public double sea_level { get; set; }
    [DataMember]
    public double grnd_level { get; set; }
    [DataMember]
    public int humidity { get; set; }
    [DataMember]
    public double temp_kf { get; set; }
}

[DataContract]
public class Weather
{
    [DataMember]
    public int id { get; set; }
    [DataMember]
    public string main { get; set; }
    [DataMember]
    public string description { get; set; }
    [DataMember]
    public string icon { get; set; }
}

[DataContract]
public class Clouds
{
    [DataMember]
    public int all { get; set; }
}

[DataContract]
public class Wind
{
    [DataMember]
    public double speed { get; set; }
    [DataMember]
    public double deg { get; set; }
}

[DataContract]
public class Sys2
{
    [DataMember]
    public string pod { get; set; }
}

/*public class Rain
{
    public double __invalid_name__3h { get; set; }
}*/

[DataContract]
public class List
{
    [DataMember]
    public int dt { get; set; }
    [DataMember]
    public Main main { get; set; }
    [DataMember]
    public List&lt;Weather&gt; weather { get; set; }
    [DataMember]
    public Clouds clouds { get; set; }
    [DataMember]
    public Wind wind { get; set; }
    [DataMember]
    public Sys2 sys { get; set; }
    [DataMember]
    public string dt_txt { get; set; }
    //public Rain rain { get; set; }
}

[DataContract]
public class RootObject
{
    [DataMember]
    public City city { get; set; }
    [DataMember]
    public string cod { get; set; }
    [DataMember]
    public double message { get; set; }
    [DataMember]
    public int cnt { get; set; }
    [DataMember]
    public List&lt;List&gt; list { get; set; }
}
</code></pre>

<p>Then after I have my RootObject which holds all the data forecast I try to bind a list of the first ten temperatures to a ListView.</p>

<p>EDIT:</p>

<pre><code>public sealed partial class MainPage : Page
{

    private List&lt;double&gt; TemperatureObjects;
    private ObservableCollection&lt;RootObject&gt; WeatherObjects;
</code></pre>

<p>My XAML looks like that:</p>

<pre><code>  &lt;ListView Grid.Row="2" ItemsSource="{x:Bind WeatherObjects}"&gt;
        &lt;ListView.ItemTemplate&gt;
            &lt;DataTemplate x:DataType="local:RootObject"&gt;
                &lt;StackPanel Orientation="Vertical"&gt;
                    &lt;TextBlock&gt;
                        &lt;Run Text="{x:Bind Temp}"/&gt;
                        &lt;Run Text="&amp;#xE00BA;"/&gt;
                    &lt;/TextBlock&gt;

                &lt;/StackPanel&gt;
            &lt;/DataTemplate&gt;
        &lt;/ListView.ItemTemplate&gt;
    &lt;/ListView&gt;
</code></pre>

<p>Can you show me some help for this issue? thanks</p>