My use case is to display emoji in a ListView in UWP applicataion. For that purpose I created a class with 2 properties as below
public string name { get; set; }
public String emoji{ get; set; }
and binding the observablecollection of this class with the listview Template
<DataTemplate x:Key="IconTextTemplate" x:DataType="models:Project">
<RelativePanel >
<TextBlock x:Name="emoji" Text="{x:Bind emoji}" />
<StackPanel>
<TextBlock Text="{x:Bind name}" " />
</StackPanel>
</RelativePanel>
</DataTemplate>
The value of emoji I have set is '\u1F610' but upon running the application system converts the value of emoji which is (UTF32) to UTF16 and prints last character as is so I am loosing out the representation of emoji. I have done bit googling around it and I got to know that string in .net are by default UTF16 encoded, hence I cannot create UTF32 encoded string.
Can anyone help me find alternative for this.
Output looks like this: