diff --git a/README.md b/README.md index d924913..d973da9 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/class-library.md b/class-library.md new file mode 100644 index 0000000..d2e9eb8 --- /dev/null +++ b/class-library.md @@ -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) diff --git a/images/00-class-library.PNG b/images/00-class-library.PNG new file mode 100644 index 0000000..113ab69 Binary files /dev/null and b/images/00-class-library.PNG differ