コード例 #1
0
        public ImageSource TryGetImage(IconId iconId, IconTheme theme, IThemedIconManagerPerThemeCache cache, OnError onerror)
        {
            var emojiIconId = iconId as EmojiIconId;

            var image = emojiIconId?.Emoji.Bitmap();
            return image;
        }
コード例 #2
0
        public ImageSource TryGetImage(IconId iconId, IconTheme theme, IThemedIconManagerPerThemeCache cache, OnError onerror)
        {
            var emojiIconId = iconId as EmojiIconId;

            var image = emojiIconId?.Emoji.Bitmap();

            return(image);
        }
コード例 #3
0
        public ImageSource TryGetImage(IconId iconId, IconTheme theme, IThemedIconManagerPerThemeCache cache, OnError onerror)
        {
            try
            {
                var emojiIconId = iconId as EmojiIconId;
                var image       = emojiIconId?.Emoji.Bitmap();

                return(image);
            }
            catch (Exception ex)
            {
                onerror.Handle(ex);
                return(null);
            }
        }