Showing a MessageBox in Silverlight 2.0 Beta 1

Standard

image

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…)

 

Links

http://technorati.com/posts/h5FUAU2oBG9cu6csT4B12MIe2vM0IYbVeIqb2ZfOLEM%3D

Share this post :

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s