in

vbCity Blogs

New (temp) place for vbCity Blogs

Mike McIntyre's .NET Journal

May 2009 - Posts

  • Silverlight 2 Blog Post 2 - Hello World

     Source Code: Silverlight 2 Blog Post 2 - Hello World

     

    Silverlight 2 Blog Post 2 - Hello World

     

    This post describes how to use Visual Studio 2008 SP1 to create a Silverlight 'Hello World' application.

    1. If you have not done so already, install the Silverlight 2 browser plug-in at: 

    http://www.microsoft.com/silverlight/resources/install.aspx

    2. If you have not done so already, install the "Microsoft® Silverlight™ 2 Tools for Visual Studio 2008 SP1" at:

    http://www.microsoft.com/downloads/details.aspx?FamilyId=c22d6a7b-546f-4407-8ef6-d60c8ee221ed&displaylang=en

    3.  Open Visual Studio 2009 SP1.

    4.  Select File menu -> New Project...

    5.  The New Project dialog will open. 

    Select Visual Basic in the Project types list on the left side of the dialog.  Click the Silverlight Application template (1) in the Templates area of the dialog.  Change the name of the Project to 'HelloWorld' (2).  Click the OK button (3).

    6. The Add Silverlight Application dialog will open.

    Make sure option 1 - 'Add a new ASP.NET web project to the solution to host Silverlight' - is selected.  Click the OK button.

    7.  Your solution will be built.  It contains (1) a Silverlight application project and (2) an ASP.NET web site.

    8.  Add a single line of markup the XAML.

    9.  Press the F5 key to build the solution and view the HelloWorld Silverlight application in a web page.

    10.  The Debugging Not Enabled dialog will open.  Click the Ok button to use the default settings.

    11. Your HelloWorld application runs in the browser.

    Next Silverlight 2 blog post: 

    Dissecting the HelloWorld Solution

  • Silverlight 2 Blog Series - Post 1

    This is the first in a blog series about developing Microsoft Silverlight 2 applications. 

    As of this post, Silverlight 2 is the latest release of Silverlight. A beta version of Silverlight 3.0 is available but keep this in mind: if you install the Silverlight 3 beta on your development computer in a non virtual space you will no longer be able to develop Silverlight version 2 applications.  If you would like to develop for both versions of Silverlight on the same computer set up a Virtual PC environment for Silverlight beta 3 development.

    Silverlight is both a browser plug-in and a framework for building rich, browser-hosted applications that run on a variety of operating systems.

    A user installs the Silverlight plug-in once to see content created by many people and companies. After the plug-in is installed, when a user accesses a web page that includes Silverlight content, the plug-in runs in the browser, executes the code, and renders that content in a region of the page.

    For professional Silverlight development Microsoft provides the Silverlight framework, Microsoft Visual Studio, and Microsoft Expression Blend.

    Silverlight 2 System Requirements

    • Windows computers. Silverlight 2 works on PCs with Windows Vista and Windows XP. The minimum browser versions that Silverlight 2 supports are Internet Explorer 6 and Firefox 1.5. Silverlight 2 will also work in Windows 2000, but only with Internet Explorer 6.

    • Mac computers. Silverlight works on Mac computers with OS X 10.4.8 or later, provided they have Intel hardware (as opposed to PowerPC hardware). The minimum browser versions that Silverlight 2 supports are Firefox 1.5 and Safari.

    Next Silverlight blog post: Hello World!

Copyright 1998-2009 vbCity.com LLC
Powered by Community Server (Non-Commercial Edition), by Telligent Systems