a7028ff388f9d237bb1750bda589738abc10ec00
[mono.git] / mcs / class / referencesource / System.Activities.Presentation / System.Activities.Presentation / System / Activities / Presentation / View / ViewStateChangedEventArgs.cs
1 //----------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation.  All rights reserved.
3 //----------------------------------------------------------------
4
5 namespace System.Activities.Presentation.View
6 {
7     using System.Activities.Presentation.Model;
8     using System.Runtime;
9
10     [Fx.Tag.XamlVisible(false)]
11     public class ViewStateChangedEventArgs : EventArgs
12     {
13         ModelItem parentModelItem;
14         string key;
15         object newValue;
16         object oldValue;
17         
18         public ViewStateChangedEventArgs(ModelItem modelItem, string key, object newValue, object oldValue)
19         {
20             this.parentModelItem = modelItem;
21             this.key = key;
22             this.newValue = newValue;
23             this.oldValue = oldValue;
24         }
25
26         public ModelItem ParentModelItem
27         {
28             get
29             {
30                 return this.parentModelItem;
31             }
32         }
33         public string Key
34         {
35             get
36             {
37                 return this.key;
38             }
39         }
40
41         public object NewValue
42         {
43             get
44             {
45                 return this.newValue;
46             }
47         }
48
49         public object OldValue
50         {
51             get
52             {
53                 return this.oldValue;
54             }
55         }
56
57
58     }
59 }