This vsix package illustrates how to use prism framework for winform applications to create composite applications with modular and DI concepts.
After installing the vsix package prism6forwinform project template will be added to under C# languages to create sample winform application with prism and unity container.
The sample project from the wizard will help us to understand how to create region using panels(at present only panel containers are considered for region creation), navigation, view model mappings, view navigations.
Inorder to extend normal winform with region bindings, add "Prism.Unity.WpfWinForm" dll to toolbox to gain the control on Region extender (Implemened with IExtenderProvider). Select any winform panel to access region name mapping as shown below images.
Region extender control in toolbox for panels Adding region extender to winform and mapping region name to a panel I would like to thank Brian Noyes for valuable insights into Bringing Prism to WinForms. This blog posting inspired me to extend the prism framework functionalities to WinForm.
Refer code sample page for wizard created application and how to run it
Please feel free to revert with your feedbacks. i will be extending the framework to support tab controls, avalon dock manager. |