public FilteredMessageTextBox() { ToggleSmileyCommand = new DelegateCommand(ToggleSmileyCommand_Execute); InitializeComponent(); ComputedMessage = new NormalChatUserMessage(); ApplicationViewModel.Current.ChatProxy.MessageSentSuccessfully += ChatProxy_MessageSentSuccessfully; }
public CombinedNormalChatUserMessages(NormalChatUserMessage initialMessage) { FromUser = initialMessage.FromUser; Text = initialMessage.Text; ToUsers = initialMessage.ToUsers; Tags = initialMessage.Tags; Messages = new ObservableCollection <NormalChatUserMessage>() { initialMessage }; MessagesView = CollectionViewSource.GetDefaultView(Messages); }
public void AddMessage(NormalChatUserMessage message) { Date = message.Date; Messages.Add(message); OnPropertyChanged(nameof(Date)); }