Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/266.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 数据绑定到HubSection内的ListView_C#_Xaml_Listview_Data Binding_Windows Phone 8.1 - Fatal编程技术网

C# 数据绑定到HubSection内的ListView

C# 数据绑定到HubSection内的ListView,c#,xaml,listview,data-binding,windows-phone-8.1,C#,Xaml,Listview,Data Binding,Windows Phone 8.1,我正在从Bing API获取搜索结果,并将每篇文章添加到列表中,并尝试将其绑定到XAML中的ListView,但在HubSection中没有显示结果 private List bNews=new List(); 其中,NewsArticle的定义为: 这里是显示我的HubSection和绑定的XAML 我已经找了其他的例子,甚至可以让它在全景风格的应用程序中正常工作,但我在Hubbsection中很难让它正常工作。任何洞察都会很棒 public class NewsArticle :

我正在从Bing API获取搜索结果,并将每篇文章添加到列表中,并尝试将其绑定到XAML中的ListView,但在HubSection中没有显示结果

private List bNews=new List();
其中,NewsArticle的定义为:

这里是显示我的HubSection和绑定的XAML


我已经找了其他的例子,甚至可以让它在全景风格的应用程序中正常工作,但我在Hubbsection中很难让它正常工作。任何洞察都会很棒

public class NewsArticle : INotifyPropertyChanged

{
     private string Description;
     public event PropertyChangedEventHandler PropertyChanged;
     public string Description1
     {
         get { return Description; }
         set { Description = value; }
     }

     private string Link;

     public string Link1
     {
         get { return Link; }
         set { Link = value; }
     }

     private string Title;

     public string Title1
     {
         get { return Title; }
         set { Title = value;
         NotifyProperyChanged("Title");
         }
     }

     public void NotifyProperyChanged(string propertyName)
     {
         if (PropertyChanged != null)
         {

             PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
         }
     }