Esempio n. 1
0
 public Sample()
 {
     Obj1 = new DepObj1();
     Obj2 = new DepObj2();
     Obj3 = new DepObj3();
     Obj4 = new DepObj4();
     InitializeComponent();
     HandleChangesPropertyMetadata.AddPropertyChanged(DepObj1.TestProperty, Obj2.DependencyObjectType,
                                                      OnTestChanged);
     HandleChangesPropertyMetadata.AddPropertyChanged(DepObj1.TestProperty, Obj3.DependencyObjectType,
                                                      OnTestChanged);
     HandleChangesPropertyMetadata.AddPropertyChanged(DepObj4.TestProperty, Obj4.DependencyObjectType,
                                                      OnTestChanged);
 }
Esempio n. 2
0
 public Sample()
 {
     Obj1 = new DepObj1();
     Obj2 = new DepObj2();
     Obj3 = new DepObj3();
     Obj4 = new DepObj4();
     InitializeComponent();
     HandleChangesPropertyMetadata.AddPropertyChanged(DepObj1.TestProperty, Obj2.DependencyObjectType,
                                                      OnTestChanged);
     HandleChangesPropertyMetadata.AddPropertyChanged(DepObj1.TestProperty, Obj3.DependencyObjectType,
                                                      OnTestChanged);
     HandleChangesPropertyMetadata.AddPropertyChanged(DepObj4.TestProperty, Obj4.DependencyObjectType,
                                                      OnTestChanged);
 }