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 :


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s