Reputation: 2175
I need to the display the Text which is having the & symbol in the TextBlock... Is there any way to display in xaml... Even i write the Text with the & symbol in the Text property of TextBlock.. It displays an error ?
Upvotes: 1
Views: 3410
Reputation: 38220
Well you should try using &
which should show up as &
and maybe you can also achieve the same using CDATA <![CDATA[&]]>
Upvotes: 8
Reputation: 6490
It must be an encoding issue with xaml, yoou could use html encoded string to print some special characters there.
for ampersand, you coudld use &
. Hope this helps.
Upvotes: 1