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]
 Sunday, April 27, 2008

So far I have found two examples of a stand alone strategy for Silverlight.

Silverlight: Running standalone full trust applications

How to make Silverlight be AiR?

Both pretty much use the same method by employing MSHTA with an *.hta file.(also achieving full trust for the application)

The trouble is these solutions are not a cross platform answer, and I don't see the benefit this would bring over a WPF click once app or an xbap application.  At least its possible.  Maybe Microsoft will find it beneficial to provide an attractive offline mode for Silverlight apps.

posted by Aaron Fischer on Sunday, April 27, 2008 2:43:34 PM (Pacific Standard Time, UTC-08:00)   #    Comments [3]