Complete the following steps:
Visual Basic Copy Code Imports C1.Silverlight.Extended
C# Copy Codeusing C1.Silverlight.Extended;
Visual Basic Copy Code Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles Button1.Click Me.C1HtmlHost1.SourceUri = New Uri(String.Format(TextBox1.Text)) End Sub private void Button1_Click(object sender, RoutedEventArgs e) { Cc1HtmlHost1.SourceUri = new Uri(string.Format(TextBox1.Text)); }
C# Copy CodeType your example code here. It will be automatically colorized when you switch to Preview or build the help system.
This code handles the button's Click event and customizes the C1HtmlHost control.
What You've Accomplished
In this step you added code to add functionality to your application – now when a user enters a URL in the text box and clicks the button at run time, the C1HtmlHost control will display the selected Web site. In the next step you'll run your application and observe some of the run-time interactions possible with HtmlHost for Silverlight.