title: Adding data to ObservableCollection in WPF
body: <p>I have some problem here. Here it is:
  I have this class</p>
  
  <pre><code>public class NewsFeedResources
  {
      public string Name { get; set; }
      public string Id { get; set; }
      public string Message { get; set; }
  
      public static ObservableCollection&lt;NewsFeedResources&gt; _newsfeed = new ObservableCollection&lt;NewsFeedResources&gt;
      {
  
          new NewsFeedResources { Name = "Joe", Id = "1", Message="Foo" },
          new NewsFeedResources { Name = "Wandy", Id = "2", Message="Bar" },
          new NewsFeedResources { Name = "Yuliana", Id = "3", Message="Baz" },
          new NewsFeedResources { Name = "Hardi", Id = "4", Message="Baz" },
  
      };
  
      public static ObservableCollection&lt;NewsFeedResources&gt; newsFeedResources
      { get { return _newsfeed; }
  
      }
  }
  </code></pre>
  
  <p>If I have another data such as</p>
  
  <p>Name=John, Id=5, Message="Stack overflow"<br>
  Name=Jane, Id=6, Message="Hello world"</p>
  
  <p>How can I add the data into the class, but not from the constructor? Thanks for the help</p>