create new class library guides

main
Yik Teng Hie 3 years ago
parent 086a47010e
commit 3fe81c9581

@ -4,7 +4,7 @@
* Existing Mitech-wpf use `Prism 4.x`. The only official legacy reference is based on [Prism 6](https://prismlibrary.com/docs/wpf/legacy/Introduction.html)
* Its using `MEF Ioc (Dependency Injection)`. The `MEF DI` was removed from Prism 7.x and above. Only `Unity Dependency Injection` supported form Prism 7.x onward
* The latest Prism Library is `8.1`
* Prism 8 support NET 5 and dotnet Framework. Prism 6.x and below only DotNet Framework 4.8 and below
* Prism 8 support NET 5 and dotnet Framework. Prism 6.x and below only DotNet Framework 4.8 and below.
## Legacy Documentation
- [Prism 5](https://www.microsoft.com/en-sg/download/details.aspx?id=42572)

@ -0,0 +1,35 @@
# Create New Class Library Guides
## Basic Dependencies
- Microsoft.Practices.Prism
- Microsoft.Practices.Prism.MefExtensions
- Framework Assemblies
- PresentationCore
- PresentationFramework
- WindowsBase
- Projects
- MitechLib.Infrastructure
![00-class-library](./images/00-class-library.PNG)
## Steps
1. Add all the basic dependencies
2. Create a module class with `IModule` interface
```cs
using Microsoft.Practices.Prism.Modularity;
namespace MitechLib.Product.PackagePage
{
public class ProductPackagePage : IModule
{
public void Initialize()
{
}
}
}
```
3. Create Views & ViewModels Folder
4. Create desired View & ViewModel [Tutorial](view-viewmodel.md)

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Loading…
Cancel
Save