private bool SetPollTemplate(MessageViewModel message, MessagePoll poll, string title) { Visibility = Visibility.Visible; HideThumbnail(); SetTitle(GetFromLabel(message, title)); SetService($"\uD83D\uDCCA {poll.Poll.Question.Replace("\r\n", "\n").Replace('\n', ' ')}"); SetMessage(string.Empty); return(true); }
private bool SetPollTemplate(MessageViewModel message, MessagePoll poll, string title) { Visibility = Visibility.Visible; if (ThumbRoot != null) { ThumbRoot.Visibility = Visibility.Collapsed; } TitleLabel.Text = GetFromLabel(message, title); ServiceLabel.Text = $"\uD83D\uDCCA {poll.Poll.Question.Replace("\r\n", "\n").Replace('\n', ' ')}"; MessageLabel.Text = string.Empty; return(true); }