Thursday, October 02, 2008
From the channel nine screen cast Silverlight - Handling HTML Events in .NET Code by Mike Taulty
 
Void OnLoaded (object sender, RoutedEventArgs e)
{
    HtmlElement element =
        HtmlPage.Document.GetElementById("MyButton");
    element.AttachEvent("onclick", (EventHandler)MyHandler);
}
void MyHandler( object sender, EventArgs args)
{
    //Do something.
}
posted by Aaron Fischer on Thursday, October 02, 2008 9:19:01 AM (Pacific Standard Time, UTC-08:00)   #    Comments [0]
Related posts:
Borders Support Tool Tips
Stand Alone Silverlight?
Name
E-mail
Home page

Comment (Some html is allowed: a@href@title, b, blockquote@cite, em, i, strike, strong, sub, super, u) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Enter the code shown (prevents robots):

Live Comment Preview