daily pastebin goal
66%
SHARE
TWEET

Untitled

a guest Sep 12th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. WPF Intercept dependency property
  2. protected override void OnItemsSourceChanged(IEnumerable oldValue, IEnumerable newValue)
  3. {
  4.     // update your property here
  5.     base.OnItemsSourceChanged(oldValue, newValue);
  6. }
  7.    
  8. if(e.Property.Name = "DataSource")
  9. {
  10. // Invoke my new method
  11. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top