Tutorials » Silverlight tutorials »
Now, open your XAML control file and add a button control as shown below:
<Grid x:Name="LayoutRoot" Background="White">
<Button x:Name="btnSayHello" Content="Say Hello"
Go to the code behind file for the XAML Page and add the event handler for the button click event:
private void btnSayHello_Click(object sender, RoutedEventArgs e)
In order to use the HtmlPage class, you need to include the System.Windows.Browser
You can download a sample project for this tutorial.
Next Chapter: How to show a popup layer within a Silverlight web page?
Previous Chapter: Create WCF service to retrieve session data - part II
More Chapters: Silverlight Tutorials
More Tutorials: Tutorial Index
Active MembersTodayLast 7 Daysmore...
Talk to Webmaster Tony John