Reputation: 913
I'm try to pass my Icon text through x:Bind Icon like this
<ui:ButtonWithIcon IconContent="{x:Bind Icon}"
Content="{x:Bind Name}"
Margin="0,20,0,0"
Style="{StaticResource RoundFontButtonStyle}"/>
However, It gave me this result:
If I change the code to this, the font icon do show correctly:
<ui:ButtonWithIcon IconContent=""
Content="{x:Bind Name}"
Margin="0,20,0,0"
Style="{StaticResource RoundFontButtonStyle}"
/>
What am I doing wrong?
Upvotes: 1
Views: 111
Reputation: 7727

is a XAML escape character, that is, it is just an expression in XAML.
In C#, as a unicode character, it can be written like this:
Name = "\uE1D3";
Upvotes: 1