using ReactiveUI; using System.Collections.Generic; using System.Collections.ObjectModel; namespace Presence.Desktop.ViewModels; public class PresenceViewModel : ViewModelBase, IRoutableViewModel { public string? UrlPathSegment { get; } public IScreen HostScreen { get; } public ObservableCollection People { get; } public PresenceViewModel() { var people = new List { new Person("Neil", "Armstrong"), new Person("Buzz", "Lightyear"), new Person("James", "Kirk") }; People = new ObservableCollection(people); } public class Person { public string FirstName { get; set; } public string LastName { get; set; } public Person(string firstName, string lastName) { FirstName = firstName; LastName = lastName; } } }