A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

16 lines
382 B

using System.Collections.ObjectModel;
using System.IO;
using VirtualizationDemo.Models;
namespace VirtualizationDemo.ViewModels;
public class ChatPageViewModel
{
public ChatPageViewModel()
{
var chat = ChatFile.Load(Path.Combine("Assets", "chat.json"));
Messages = new(chat.Chat);
}
public ObservableCollection<ChatMessage> Messages { get; }
}