Click here to Skip to main content
15,885,546 members
Articles / Desktop Programming / WPF

An Address Book Application Made in MVVM For Metro Style App in Windows 8 Part 2

Rate me:
Please Sign up or sign in to vote.
4.40/5 (5 votes)
29 May 2012CPOL6 min read 41K   1.3K   14  
This is the Second Part XML file as data source in Windows8
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Mvvm3_Basic.Model
{
    public class Contact : INotifyPropertyChanged
    {
        private string _guid;
        public string CGuid { get { return _guid; } set { _guid = value; CP("CGuid"); } }
        private string _name;
        public string Name { get { return _name; } set { _name = value; CP("Name"); } }
        private string _email;
        public string Email { get { return _email; } set { _email = value; CP("Email"); } }

        private void CP(string s)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(s));
        }
        public event PropertyChangedEventHandler PropertyChanged;
    }
}

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
CEO Addya Technologies
India India
"I am the CEO"
An Entrepreneur, Driving an Business Transformation Unit.

Comments and Discussions