Wrapping Text and Hyperlinks in Silverlight -


I have a string that looks like the following:

  Thanks for visiting our site. Please review our rules and policies.  

Importantly, the "rule" should be a hyperlink that indicates "rules.html". Also, the "policies" should be a hyperlink that points to "policies.html" The challenge is that I rarely have any real property for this lesson. The text is cut off on "please" if it was not for hyperlinks, then I can do the following:

  & lt; TextBlock TextWrapping = "wrap" text = "Thank you for visiting our site. Please review our rules and policies" / & gt;  

However, due to hyperlinks, I can not understand how to wrap the text naturally. Can anyone tell me how to do this?

Thank you!

Try it: -

  & lt; Rich Textbox IsReadOnly = "True" & gt; & Lt; Paragraph; Thanks for visiting our website. Please read our & lt; Hyperlink Navigatory = "/ Rules HTM" & gt; Rules & lt; / Hyperlink & gt; review the. And & lt; Hyperlink Navigatry = "/ policies HTM" & gt; Policies & lt; / Hyperlink & gt; & Lt; / Paragraph & gt; & Lt; / RichTextBox & gt;  

BTW, the way the Visual Studio Designer looks at runtime, it can not be closed.


Comments