Você está na página 1de 2

61. What is Prism? A.

Prism is the framework or the set of guidelines which is used to develop the WPF desktop application as well as the Silverlight Rich Internet applications. S o it s a kind of Design pattern to Develop the XMAL based application. It also use d to develop the Windows 7 applications. Prism mainly helps to design the loosel y coupled components which can be easily integrated with the other components of the overall application. Prism mainly used to build the composite applications which need various other components to be integrated. Prism mainly guides of creating the applications using the Model-View-ViewModel (MVVM) model, Managed Extensibility Framework (MEF), and navigation in the appli cation. To use the Prism framework, we need to use their library called as Prism Library . So prism Library is the inbuilt set of components which can be used in develop ing the WPF and Silverlight applications. You can go through the below link for more details and the use of the components of the Prism framework: http://msdn.microsoft.com/en-us/library/ff648465.aspx 62. Dependency Injection, Event Aggregator. A. For the details about the dependency injection, you can follow the below link : http://wpftutorial.net/ReferenceArchitecture.html EventAggregator : It is the utility service which contains the events and allows the decouple the publisher and subscriber so that they can be buildup independe ntly. Decouple is primarily useful when a new module needs to be added or remove d or modified. The new module can be added as per the event fired and defined in the shell. For more details about the Event Aggregator, you can follow the below link: http://msdn.microsoft.com/en-us/library/ff921122(v=pandp.20).aspx 63. Shell, Bootstrapper and Region Managers A. Bootstrapper:- An utility in WPF engine which is mainly responsible for the i nitialization of the application by using the composite application library. By using the bootstrapper we can find out how the components of the application are wired up in the composite application library. The bootstrapper responsibility to create the Shell or main window. Composite application library has the defaul t abstract class UnityBootstrapper which actually handles the initialization. You can go through the below link for more details about the bootstrapper: http://msdn.microsoft.com/en-us/library/ff921139(v=pandp.20).aspx Region and Region Managers: This is concept of Prism framework. We define the re gion through XAML code and once a region is defined, automatically it will be re gistered with the RegionManager. Actually the Bootstrapper registers a service c alled the RegionManager at run time. RegionManager is a dictionary where the key is name of the region. The value of the key is the reference of the IRegion int erface. RegionAdapter is used to create the instance reference of the IRegion in terface. You can go through the below link for more details about the Region and Region M anager: http://msdn.microsoft.com/en-us/magazine/cc785479.aspx#id0090091 64. What are MEF and Unity? A. The MEF (Managed Extensibility Framework) is the new concept in .net 4.0. It is used to create the lightweight and extensible applications to create Managed Extensibility Framework. It is not only allows the extension but also reused wi thin the application. Extension can be easily encapsulating the code using the M EF. For more details, you can go through the below link: http://msdn.microsoft.com/en-us/library/dd460648.aspx

65. How to navigate to another page? A. There is a class NavigationService which can be used for navigation of the WP F window: this.NavigationService.GoForward(); //or

Você também pode gostar