public MainPageViewModel() { InitializeSendCommand(); // Initialize with default values var r = new Random(); Messages = new ObservableCollection <Message>(); for (int i = 0; i < 10; i++) { var collection = new Message(); collection.Text = MessageText[r.Next(0, MessageText.Count() - 1)]; collection.IsIncoming = i % 2 == 0 ? true : false; collection.MessagDateTime = DateTime.Now.ToString(); Messages.Add(collection); } GridIsVisible = true; }