Hi,
I am unable to find a way to implement Smart Parts like SCSF, in wpf prism, can any one suggest a way how to do it, links, articles, appriciated.
Thank you in advance, :)
Hi,
I am unable to find a way to implement Smart Parts like SCSF, in wpf prism, can any one suggest a way how to do it, links, articles, appriciated.
Thank you in advance, :)
SmartParts in SCSF was just an abstraction over the simple concept of putting a control on a surface (another control essentially) in dynamic, runtime fashion. You can write that sort of abstraction layer yourself, but it doesn't really buy you anything except added complexity.
I think the important piece to that whole thing was dynamic composition; you could compose your view at runtime using that abstraction.
But you can still do the same thing in WPF. All you need is an IoC container (like StructureMap) and a sensible way to compose UserControls into views. WPF provides you with some nice layout containers (grids, dockpanels, stackpanels) so there really isn't a need to write Workspaces anymore. You just need to not hard-code your views and instead, compose them at runtime (which is easy with the IoC container).