Monthly Archives: March 2008

Showing a MessageBox in Silverlight 2.0 Beta 1



I noticed a post on Technorati that claimed that a Msgbox (or MessageBox) capability wasn’t available Silverlight.

Well, that’s not exactly true.  It’s just in a place that isn’t so obvious:


System.Windows.Browser.HtmlPage.Window.Alert("Hello World")


I find this interesting because it shows how integrated Silverlight is with the browser experience.

This is a good thing for creating browser based applications.  The goodies in System.Windows.Browser provide a rich programming model for web page integration.

Some hope that Silverlight will be used for creating cross platform desktop style applications.  It’s close integration with the browser seems to indicate that this is not a scenario they’re catering for, at least initially.

(Although I suppose a full screen browser window would equate to the same thing…)



Share this post :