« Prism 8 » : différence entre les versions
De Banane Atomic
Aller à la navigationAller à la recherche
Aucun résumé des modifications |
|||
Ligne 13 : | Ligne 13 : | ||
** {{boxx|Prism.DryIoc}} | ** {{boxx|Prism.DryIoc}} | ||
* [https://marketplace.visualstudio.com/items?itemName=BrianLagunas.PrismTemplatePack Prism Template Pack] Visual Studio extension | * [https://marketplace.visualstudio.com/items?itemName=BrianLagunas.PrismTemplatePack Prism Template Pack] Visual Studio extension | ||
= [https://prismlibrary.com/docs/dependency-injection/index.html Dependency Injection] = | |||
<filebox fn='App.xaml.cs'> | |||
public partial class App | |||
{ | |||
protected override void RegisterTypes(IContainerRegistry containerRegistry) | |||
{ | |||
containerRegistry.RegisterScoped<IMyService, MyService>(); | |||
} | |||
</filebox> |
Version du 10 avril 2021 à 20:04
Links
Description
Fully open source version of Prism including MVVM, dependency injection, commands, EventAggregator, and others.
Prism 8 supports WPF, Xamarin Forms and UNO, but not Silverlight, Windows 8/8.1/WP8.1 or UWP.
Getting Started
- Nuget packages
- Prism.Core
- Prism.Wpf
- Prism.DryIoc
- Prism Template Pack Visual Studio extension
Dependency Injection
App.xaml.cs |
public partial class App { protected override void RegisterTypes(IContainerRegistry containerRegistry) { containerRegistry.RegisterScoped<IMyService, MyService>(); } |