private bool SetAnimationTemplate(MessageViewModel message, MessageAnimation animation, string title) { Visibility = Visibility.Visible; FindName(nameof(ThumbRoot)); if (ThumbRoot != null) { ThumbRoot.Visibility = Visibility.Visible; } TitleLabel.Text = GetFromLabel(message, title); ServiceLabel.Text = Strings.Resources.AttachGif; MessageLabel.Text = string.Empty; if (animation.Caption != null && !string.IsNullOrWhiteSpace(animation.Caption.Text)) { ServiceLabel.Text += ", "; MessageLabel.Text += animation.Caption.Text.Replace("\r\n", "\n").Replace('\n', ' '); } ThumbRoot.CornerRadius = ThumbEllipse.CornerRadius = default(CornerRadius); if (animation.Animation.Thumbnail != null) { UpdateThumbnail(message, animation.Animation.Thumbnail); } return(true); }
private bool SetAnimationTemplate(MessageViewModel message, MessageAnimation animation, string title) { Visibility = Visibility.Visible; ShowThumbnail(); SetTitle(GetFromLabel(message, title)); SetService(Strings.Resources.AttachGif); SetMessage(string.Empty); if (animation.Caption != null && !string.IsNullOrWhiteSpace(animation.Caption.Text)) { AppendService(", "); AppendMessage(animation.Caption.Text.Replace("\r\n", "\n").Replace('\n', ' ')); } if (animation.Animation.Thumbnail != null) { UpdateThumbnail(message, animation.Animation.Thumbnail); } return(true); }
public static bool UpdateFile(this MessageAnimation animation, File file) { return(animation.Animation.UpdateFile(file)); }
public void OnSubmit(BaseEventData eventData) { MessageAnimation.PlayOutro(GetComponent <Button>()); MessageManager.SetCurrentMessage(message.mail); }
// Awake private void Awake() { Instance = this; }
public void StartAnimationMessage() { Application.Current.Dispatcher.Invoke(() => MessageAnimation.Begin()); }
private void Button_Click(object sender, RoutedEventArgs e) { MessageAnimation.Begin(); }
private void Awake() { buttons = GetComponentsInChildren <Button>(true); instance = this; }