Silverlight 2 VisualStateManager Part # 2


  1. Install Silverlight Tools for Visual Studio 2008 SP1
    This add-on for Visual Studio 2008 SP1 or Visual Web Developer Express with SP1 will install the necessary Visual Studio updates, Silverlight project templates, developer runtime, and SDK. For additional information read the overview and the Silverlight 2 Readme Notes.

  2. Install Microsoft Expression Blend 2 Service Pack 1
    This service pack for Expression Blend allows designers to create graphics for Silverlight 2 applications.

 

Silverlight 2 beta 2 VisualStateManager Part # 1 

Download source:
http://cid-7d608959d854cb28.skydrive.live.com/embedrowdetail.aspx/SourcesCode/SL2RVSM|_Part|_2|_16-10-2008.zip

SL2R_VSM2

 

0 1

2

3 4

5 6

7 8

x1

โค้ดิ้ง:


using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace SL2RVSM_Part_2
{
    public partial class Page : UserControl
    {
        public Page()
        {
            // Required to initialize variables
            InitializeComponent();
        }


        private void btHome_Click(object sender, RoutedEventArgs e)
        {
            VisualStateManager.GoToState(this, "Home", true);
        }

        private void btMasterData_Click(object sender, RoutedEventArgs e)
        {
            VisualStateManager.GoToState(this, "MasterData", true);
        }

        private void btReport_Click(object sender, RoutedEventArgs e)
        {
            VisualStateManager.GoToState(this, "Report", true);
        }

    }
}

 

 

 Silverlight 2 beta 2 VisualStateManager Part # 1

 

 

Advertisements
เกี่ยวกับ

Nuchit Atjanawat is a Microsoft MVP, GreatFriends Community Leader, WindowsITPro Columnist(Mr.Nano), Silverlight Business Application Instructor, Speaker in various Microsoft events, Author, passionate Blogger and a Software Engineer by profession. He has a very good skill over Silverlight, LightSwitch, C#, XAML & Blend. He shares his technical findings, tutorials in his technical blog. Follow his Blog and Facebook page to be updated on latest articles. - Technical Blog: https://janawat.wordpress.com - WindowsITPro Columnist(Mr.Nano): http://windowsitpro.net - The GreatFriends.Biz Community Discussion Board (nano): http://greatfriends.biz - witter: https://twitter.com/janawat - Facebook Page: https://www.facebook.com/nuchit - Instructor: http://bit.ly/GF250-01, http://bit.ly/GF150-02

เขียนใน Silverlight

ใส่ความเห็น

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 / เปลี่ยนแปลง )

Twitter picture

You are commenting using your Twitter account. Log Out / เปลี่ยนแปลง )

Facebook photo

You are commenting using your Facebook account. Log Out / เปลี่ยนแปลง )

Google+ photo

You are commenting using your Google+ account. Log Out / เปลี่ยนแปลง )

Connecting to %s

In Archive
%d bloggers like this: