Displaying an external Web site in ComponentOne HtmlHost for Silverlight is as simple as setting a single property. The SourceUri property determines the URI of the site displayed in the control. You can set the SourceUri property to any Web site – even an external site – to display.
At Design Time
To set the SourceUri property in Expression Blend, complete the following steps:
1. Click the C1HtmlHost control once to select it.
2. Navigate to the Properties window and locate the SourceUri item.
3. Click in the text box next to the SourceUri item and enter "http://www.componentone.com".
In XAML
For example, to set the SourceUri property add SourceUri="" to the <c1:C1HtmlHost> tag so that it appears similar to the following:
<c1:C1HtmlHost Name="c1HtmlHost1" SourceUri="http://www.componentone.com" />
In Code
For example, to set the SourceUri property, add the following code to your project:
Me.C1HtmlHost1.SourceUri = "http://www.componentone.com"
•C#
this.C1HtmlHost1.SourceUri = "http://www.componentone.com";
What You've Accomplished
You've set the SourceUri property and customized the C1HtmlHost control so that it displays the ComponentOne Web site at run time. Run the application, and observe the ComponentOne Web site appears in the C1HtmlHost control at run time.