- Rikam Palkar
- Dec 12, 2019
- 238.4k
- 0
- 4
My_First_WPF_App.zip
Introduction This blog explains how to develop a WPF application using a Prism library and MVVM architectural pattern. No matter how big or complex your app is, this base foundation stays the same for all types of projects. That's why it's very crucial to understand its behavior. We will learn how to make use of UnityContainer and how to achieve modularity in WPF applications using Prism. Why Prism? Prism is a framework for building loosely coupled, maintainable, and testable XAML applications in WPF. Note: There is a project download attached for your reference. The source code is free to use and developed only for learning purposes. Steps (Refer bold part of below code snippet.) Thank you so much for visiting this blog, I hope you were helped by this. If you have any queries, please connect with me. Have a good day :)
(Refer to the below image.)
(Refer below image.)
UnityBootStapper class coming from namespace: using Prism.Unity;
Open the code-behind of App.xaml which is App.xaml.cs and create an object of BootStrapper.
(Refer bold part of below code snippet.)
(Refer below image.)
(Refer bold part of below code snippet.)
(Refer below code snippet.)
(Refer to the image below.)
(Refer to the bold part of the below code snippet.)
(Refer to the bold part of the below code snippet.)
(Refer to the bold part of the below code snippet.)
(Refer to the image below.)
(Refer to the bold part of the below code snippet.)
(Refer to the image below.)