Advertisement
TechnoTalkative

Untitled

Jan 7th, 2013
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Net;
  3. using System.Windows;
  4. using System.Windows.Controls;
  5. using System.Windows.Documents;
  6. using System.Windows.Ink;
  7. using System.Windows.Input;
  8. using System.Windows.Media;
  9. using System.Windows.Media.Animation;
  10. using System.Windows.Shapes;
  11. using System.ComponentModel;
  12.  
  13. namespace Paresh.Utils
  14. {
  15.     public class RootPageItem : INotifyPropertyChanged
  16.     {
  17.         private string iTitle = String.Empty;
  18.         private string iIsParent = String.Empty;
  19.         private string iContent= string.Empty;
  20.  
  21.         public string Title
  22.         {
  23.             get
  24.             {
  25.                 return this.iTitle;
  26.             }
  27.             set
  28.             {
  29.                 this.iTitle = value;
  30.                 NotifyPropertyChanged(iTitle);
  31.             }
  32.         }
  33.        
  34.         public string isParent {
  35.  
  36.             get
  37.             {
  38.                 return this.iIsParent;
  39.             }
  40.             set
  41.             {
  42.                  this.iIsParent = value;
  43.                  NotifyPropertyChanged(iIsParent);
  44.             }
  45.         }
  46.      
  47.         public string content
  48.         {
  49.             get
  50.             {
  51.                 return iContent
  52.             }
  53.             set
  54.             {
  55.                    this.iContent = value;
  56.                     NotifyPropertyChanged(iContent);
  57.              }
  58.         }
  59.  
  60.         public event PropertyChangedEventHandler PropertyChanged;
  61.  
  62.         private void NotifyPropertyChanged(String info)
  63.         {
  64.             PropertyChangedEventHandler handler = this.PropertyChanged;
  65.  
  66.             if (handler != null)
  67.             {
  68.                 handler(this, new PropertyChangedEventArgs(info));
  69.             }
  70.         }
  71.     }
  72.  
  73.  
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement