using System; using System.ComponentModel; using System.Diagnostics; using System.Net; 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 WindowsPhoneApplication1 { public class ItemViewModel : INotifyPropertyChanged { private string _lineOne; /// <summary> /// Sample ViewModel property; this property is used in the view to display its value using a Binding. /// </summary> /// <returns></returns> public string LineOne { get { return _lineOne; } set { _lineOne = value; NotifyPropertyChanged("LineOne"); } } private string _lineTwo; /// <summary> /// Sample ViewModel property; this property is used in the view to display its value using a Binding. /// </summary> /// <returns></returns> public string LineTwo { get { return _lineTwo; } set { _lineTwo = value; NotifyPropertyChanged("LineTwo"); } } private string _lineThree; /// <summary> /// Sample ViewModel property; this property is used in the view to display its value using a Binding. /// </summary> /// <returns></returns> public string LineThree { get { return _lineThree; } set { _lineThree = value; NotifyPropertyChanged("LineThree"); } } public event PropertyChangedEventHandler PropertyChanged; private void NotifyPropertyChanged(String propertyName) { if (null != PropertyChanged) { PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } } }
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.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)