Exemple #1
0
 private void ReactionEmojiGridView_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (sender is FrameworkElement element && element.FindAscendant <Pivot>()?.Tag is MessageData message && e.ClickedItem is IEmojiData emojiData)
     {
         ViewModel.SetReaction(message, emojiData.Symbol);
         EmojiFlyout.Hide();
     }
 }
Exemple #2
0
        private void EmojiPanel_EmojiSelected(object sender, BiliBili_Lib.Models.BiliBili.Emote e)
        {
            EmojiFlyout.Hide();
            string text    = e.text;
            int    pos     = ReplyBox.SelectionStart;
            string content = ReplyBox.Text ?? "";

            content       = content.Insert(pos, text);
            ReplyBox.Text = content;
            ReplyBox.Select(pos + text.Length, 0);
        }
Exemple #3
0
 private void ChatSmilesControl_OnStickerChoosenEvent(object sender, VkStickerProduct sticker)
 {
     EmojiFlyout.Hide();
     ((ConversationViewModel)DataContext).SendStickerCommand.Execute(sticker);
 }