示例#1
0
        private bool SetVideoNoteTemplate(MessageViewModel message, MessageVideoNote videoNote, string title)
        {
            Visibility = Visibility.Visible;

            ShowThumbnail(new CornerRadius(18));

            SetTitle(GetFromLabel(message, title));
            SetService(Strings.Resources.AttachRound);
            SetMessage(string.Empty);

            if (videoNote.VideoNote.Thumbnail != null)
            {
                UpdateThumbnail(message, videoNote.VideoNote.Thumbnail);
            }

            return(true);
        }
示例#2
0
        private bool SetVideoNoteTemplate(MessageViewModel message, MessageVideoNote videoNote, string title)
        {
            Visibility = Visibility.Visible;

            FindName(nameof(ThumbRoot));
            if (ThumbRoot != null)
            {
                ThumbRoot.Visibility = Visibility.Visible;
            }

            TitleLabel.Text   = GetFromLabel(message, title);
            ServiceLabel.Text = Strings.Resources.AttachRound;
            MessageLabel.Text = string.Empty;

            ThumbRoot.CornerRadius = ThumbEllipse.CornerRadius = new CornerRadius(18);

            if (videoNote.VideoNote.Thumbnail != null)
            {
                UpdateThumbnail(message, videoNote.VideoNote.Thumbnail);
            }

            return(true);
        }
 public static bool UpdateFile(this MessageVideoNote videoNote, File file)
 {
     return(videoNote.VideoNote.UpdateFile(file));
 }