Skip to main content
Home Forums Silverlight Programming Programming with .NET - General how to put "&" in TextBlock?
5 replies. Latest Post by FuryDiamond on April 29, 2009.
(0)
rich_r26
Member
27 points
101 Posts
04-29-2009 9:37 AM |
None of these works, suggestion is appreciated.
<TextBlock Text="Message & View"/>
<TextBlock Text="Message & View"/>
<TextBlock Text="Message &View"/>
mepfuso
683 points
151 Posts
04-29-2009 9:44 AM |
this.myTextBlock.Text = "Message & View";
Bill Reiss
Contributor
4836 points
917 Posts
04-29-2009 10:00 AM |
& works for me
MarkTap
Participant
1442 points
263 Posts
04-29-2009 10:05 AM |
I didn't see a Silverlight docs page for this, but the WPF page is http://msdn.microsoft.com/en-us/library/aa970677.aspx, and all the same symbols seem to work in Silverlight:
<TextBlock Text="<" /> <TextBlock Text=">" /> <TextBlock Text="&" /> <TextBlock Text=""" />
04-29-2009 10:26 AM |
I guess is becuase of the way the xaml (contains the is TextBlock) is loaded.
mayControl : Control;
mayControl (){
base
FuryDiamond
3820 points
766 Posts
04-29-2009 10:37 AM |
<TextBlock Text="Message & View" />
<