Add emoji control to easily render emoji in a page. A single emoji or even a collection of emojis.
Here is the list of Microsoft emojis : http://emojipedia.org/microsoft/
Based on an example (http://emojipedia.org/penguin/), the control should handle at least one of these properties :
U+1F427):penguin:)penguin)Have you put this on uservoice?
@ScottIsAFool There is one now. :)
Worth pointing out it's already quite easy to do using the Segoe UI Emoji font and a TextBlock/RichTextBlock, I believe with the Unicode codes. Name's would be nice if someone wants to map 'em.
TextBlock seems nicer as you can stick them in runs with normal text. Perhaps being crazy, an attached property that can turn a Run into an emoji might be slightly more beneficial, or a worthy extra alongside?
<TextBlock ext:Emoji="Penguin" />
<TextBlock>
<Run Text="I am a penguin!" />
<Run ext:Emoji="Penguin" >
</TextBlock>
Ah, I totally read this control as an emoji selection control. But I like the idea of an attached property.
On the other hand there's also the argument that things like SymbolIcon exist in the framework which essentially does the same thing (textblock with SymbolFont inside it), but handily prevents the end-dev from screwing it up by setting different font families or something.
So we could inherit IconElement for an EmojiIcon, and also have an attached property for those who want easy inline emoji on text using the same enum list.
Would actually be super nice to wrap up all the different colour base and composite emoji layering options inside too into some convenient properties. I'd try it, but I have no idea how they work
I really like the idea of an EmojiFont control
Seems like @ScottIsAFool is working on something :)
@JohnnyWestlake The only issue with what you suggested is IconElement has a private/internal constructor, so you can't actually inherit from it. Another genius decision by the platform team :(
Hi,
I came from this stackoverflow post:
https://stackoverflow.com/questions/51379524/open-emoji-panel-from-code-in-uwp-app
Does anyone here know how to use this Picker programatically on UWP? It is exactly what I need, but I dont know how to call it in my Code. And assuming the user knows this super hidden key combination is very unlikely.
Most helpful comment
Worth pointing out it's already quite easy to do using the Segoe UI Emoji font and a TextBlock/RichTextBlock, I believe with the Unicode codes. Name's would be nice if someone wants to map 'em.
TextBlock seems nicer as you can stick them in runs with normal text. Perhaps being crazy, an attached property that can turn a Run into an emoji might be slightly more beneficial, or a worthy extra alongside?