WPF Binding to Proxy -


i have number of collection classes implement own custom update notification. should pretty easy translate these notifications inotifycollectionchanged implementation in proxy class.

inotifypropertychanged taken care of; question collection proxies.

so, i'm looking way of creating proxies relatively easy use xaml. particularly true sub-collections. custom collection classes part of library cannot modified (nor derived from). it's not possible replace collection types inotifycollectionchanged-compatible equivalents, because data-updating code outside control.

i'd prefer solution works sl well, it's not strict requirement.

so far, believe following approaches viable:

  • define typedescriptionprovider registered collection classes adds proxy property. allows binding paths dot-into proxy. seems solution easiest xaml perspective, not sl-compatible.
  • define value converter creates proxies. work bit more work xaml side. should work sl. however, may require "intermediate" visual elements hold value converter result if more 1 value conversion necessary on path.

i looked objectdataprovider, don't think can used in situation (the proxy creation method must generic on type of objects in container).

any recommendations on of these 2 approaches better, or other approaches?

paul stovell created editable collection adapter in , of won't satisfy needs, should give starting point create appropriate adapter/proxy.

http://www.paulstovell.com/editable-collection-adapter


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -