O'Reilly logo

Microsoft Silverlight 4 Business Application Development Beginner's Guide by Frank LaVigne, Cameron Albert

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - building navigation buttons in Silverlight

Now, let's make a StackPanel of button controls to navigate around the site. In order to do this, we will need to do the following:

  1. Launch Visual Studio 2010 and click on File|New Project.
  2. Choose to create a new Silverlight Application as shown in the next screen:
    Time for action - building navigation buttons in Silverlight
  3. Name the project CakeNavigationButtons and click OK to accept the default settings.
    Time for action - building navigation buttons in Silverlight
  4. In the MainPage.xaml file, write the following lines of XAML inside the Grid tag:
    <StackPanel> <Button Content="Home" /> <Button Content="Gallery"/> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required