Nextrek
@ 5
Nextrek / WindowsPhone / NextrekBook / Azathoth / Azathoth / ViewModels / ItemViewModel.cs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
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 Azathoth { 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 { if (value != _lineOne) { _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 { if (value != _lineTwo) { _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 { if (value != _lineThree) { _lineThree = value; NotifyPropertyChanged("LineThree"); } } } public event PropertyChangedEventHandler PropertyChanged; private void NotifyPropertyChanged(String propertyName) { PropertyChangedEventHandler handler = PropertyChanged; if (null != handler) { handler(this, new PropertyChangedEventArgs(propertyName)); } } } } |
Commits for Nextrek/WindowsPhone/NextrekBook/Azathoth/Azathoth/ViewModels/ItemViewModel.cs
Revision | Author | Commited | Message |
---|---|---|---|
5 | MOliva | Fri 19 Apr, 2013 17:26:06 +0000 | primo caricamento libri win phone 7 |