poco - WPF Wrapper AttachedProperty to follow MVVM -
i have graph control (that provides canvas draw nodes , edges) gives me following properties (non dependency properties)
- currentitem (that contains single node selected or last node selected in case of multi selection).
- 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
Post a Comment