Display the free HTML control download on the Silverlight page (with the usage code)

Source: Internet
Author: User

Today, we recommend you to display HTML on the Silverlight page.CodeYou can easily add HTML code or an HTML page address to Silverlight after referencing the extension package. More importantly, it is a free control, let's talk about the code below.

Usage:

 <  Grid   X : Name = "Layoutroot"   Background = "White"  >       <  Border   Margin = "30"  >          <! -- Place the control, and sourceuri is the referenced webpage address -->           <  Divtools : Htmlhost   Name = "Htmlhost"   Sourceuri = Http://www.google.com"   />       </  Border  >   </  Grid  > 
Private VoidButton_click (ObjectSender, routedeventargs e ){// Pop up an htmlStringbuilder html =NewStringbuilder (); html. appendline ("<H1> heading "); Html. appendline ("<P> This is a paragraph <span style = 'color: red'> using </span> CSS <strong> formatting </strong>. </P>"); Html. appendline ("<Ul> <li> list item 1 </LI> <li> list item 2 </LI> </ul>"); Htmlhost. sourcehtml = html. tostring ();}

Original Website: http://www.divelements.co.uk/silverlight/tools.aspx

Tool download: http://www.divelements.co.uk/silverlight/SilverlightTools.1.0.1.zip

I hope it will be useful to you ~!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.