poco - WPF Wrapper AttachedProperty to follow MVVM -


i have graph control (that provides canvas draw nodes , edges) gives me following properties (non dependency properties)

  1. currentitem (that contains single node selected or last node selected in case of multi selection).
  2. selection.selectednodes (that contains selected nodes)

and event called currentitemchanged.


i want bind selection.selectednodes observablecollection of viewmodel , currentitem selectedentity property on viewmodel. since third party, won't able make change in source code of graphcontrol.


can write class , attached property in achieve this? if yes, how write property/behaviour (pointers, examples)? can please guide me how wrap non-dependency, clumsy poco binded dependency/attached properties? having read this.

regards,


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -