When I want to change my font icon background, they can't show well. However, when I just not change and they keep the original value I set in XAML, they are fine.
I think it may be the problem of my font, so I try other fonts, finally, I find that only icon font like "Segoe UI Emoji" "Segoe UI Symbol" and "Segoe UI Symbol" go wrong. Other fonts, like "Verdana" or "Arial", work well.
I use TextBlock Control and set it's FontFamily Property in XAML then change it's Text Property background in C#. I also try FontIcon Control, sadly, it can't work well either.
My UWP min and target version are both 10240, I write it in Visual Studio 2015.
Here is my code:
xaml
<TextBlock Name="IconTextBlock" Text="" FontFamily="Segoe MDL2 Assets"/>
C#
private void ReFreshButton_Click(object sender, RoutedEventArgs e)
{
IconTextBlock.Text = "";
}