User Tools

Site Tools


notes:uwp:dependencyproperties

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
notes:uwp:dependencyproperties [2016/12/22]
admin [PropertyChangedCallback]
notes:uwp:dependencyproperties [2016/12/22] (current)
admin [PropertyChangedCallback]
Line 133: Line 133:
  
 // callback method // callback method
-// the obj parameter is an instance of the OwnerClass+// DependencyPropertyChangedEventArgs properties:​ 
 +// - Property - the property that has been changed 
 +// - OldValue 
 +// - NewValue
 private static void OnRadiusChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args) private static void OnRadiusChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
 { {
 +    // The obj parameter is an instance of the OwnerClass. You may use it to call any instance methods.
 +    OwnerClass owner = obj as OwnerClass;
 +  ​
     // ...     // ...
 } }
notes/uwp/dependencyproperties.txt · Last modified: 2016/12/22 by admin