wpf - Is it possible to cache the view when using model first approach? -


in our product, use mvvm model first approach , works nicely 1 caveat. when view becomes complex takes time create data template. if view shown , hidden frequently, becomes irritating. if using view first, easy enough cache view if needed - when using datatemplate , model first, not have control of view creation. solved problem without switching view first method?

with viewmodel first approach think have no chance "cache" view. may consider use view first , viewmodel locator heavyweight datatemplates workflows. here solution when using datatemplates lists.

but maybe there solution overriding wpf datatemplate mechanism?

edit: if create "markerview" viewmodel, wpf datatemplate can find it. , within marker view create/rehydrate real view? view service locator?


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -