Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. using BindableLyoutEx.Models;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Collections.ObjectModel;
  5. using System.Text;
  6.  
  7. namespace BindableLyoutEx.ViewModels
  8. {
  9. public class PersonViewModel
  10. {
  11.  
  12.  
  13. public ObservableCollection<Person> MyCollector { get; set; }
  14. public PersonViewModel()
  15. {
  16.  
  17.  
  18.  
  19. MyCollector = new ObservableCollection<Person>
  20. {
  21. new Person(){Id=1,Name="Samir",Address="TulsipurDang"},
  22.  
  23. new Person(){Id=2,Name="Suresh",Address="TulsipurDang"},
  24.  
  25. };
  26.  
  27.  
  28. }
  29.  
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement