Click here to Skip to main content
15,895,084 members
Articles / Desktop Programming / WPF

WPF Step by Step: Getting Started with WPF and Expression Blend

Rate me:
Please Sign up or sign in to vote.
4.97/5 (112 votes)
20 Aug 2010CPOL20 min read 348.2K   6.3K   206  
Getting started with your first WPF application using Microsoft Expression Blend 4.0.
using System;

namespace WpfStepByStep1
{
	public class Contact : ViewModelEntity
	{
		public Contact()
		{
		}
		
		protected string name;
		protected string email;
		protected string phonenumber;
		
		public string Name
		{
			get {return name;}
			set
			{
				if(name != value)
				{
					name = value;
					NotifyPropertyChanged("Name");
				}
			}
		}
		
		public string Email
		{
			get {return email;}
			set
			{
				if(email != value)
				{
					email = value;
					NotifyPropertyChanged("Email");
				}
			}
		}
		
		public string PhoneNumber
		{
			get {return phonenumber;}
			set
			{
				if(phonenumber != value)
				{
					phonenumber = value;
					NotifyPropertyChanged("PhoneNumber");
				}
			}
		}
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
United Kingdom United Kingdom
Follow my blog at www.dwmkerr.com and find out about my charity at www.childrenshomesnepal.org.

Comments and Discussions