MaterialDesignThemes.Prism
0.1.0
dotnet add package MaterialDesignThemes.Prism --version 0.1.0
NuGet\Install-Package MaterialDesignThemes.Prism -Version 0.1.0
<PackageReference Include="MaterialDesignThemes.Prism" Version="0.1.0" />
paket add MaterialDesignThemes.Prism --version 0.1.0
#r "nuget: MaterialDesignThemes.Prism, 0.1.0"
// Install MaterialDesignThemes.Prism as a Cake Addin #addin nuget:?package=MaterialDesignThemes.Prism&version=0.1.0 // Install MaterialDesignThemes.Prism as a Cake Tool #tool nuget:?package=MaterialDesignThemes.Prism&version=0.1.0
MaterialDesignThemes.Prism
This package allows better integration of Material Design In XAML Toolkit with Prism library.
Table of Contents
Features
- Show Material Design dialogs with Prism DialogService
The DialogService from Prism allows showing dialogs from your view models respectfully of MVVM architecture, without knowing the parts (View/ViewModel) that compose your dialog.
Dialogs are registered within the container (on your application composition root) with a name, a View, and a ViewModel so that the rest of your application needs to only know the name of the dialog in order to show it.
When you use the DialogHost from Material Design in XAML to show a dialog you lose some of these useful features. This library aims to bring you the best of both worlds, letting you use the DialogService from Prism with a Material Design in XAML DialogHost
Examples
How to show a modal dialog
- Register the MaterialDialogService implementation of IDialogService into your Prism container of choice, within RegisterTypes method
containerRegistry.Register<IDialogService, MaterialDialogService>();
- Call a ShowDialogHost overload instead of a ShowDialog whenever you call the Prism’s dialog service, by passing as a last parameter the Material Design in XAML’s DialogHost
For example, substitute this:
_dialogService.ShowDialog("YourDialogName", new DialogParameters(), result =>
{
// Access your result parameters
});
to this:
_dialogService.ShowDialogHost("YourDialogName", new DialogParameters(), result =>
{
// Access your result parameters
}, "MainDialogHost");
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETFramework 4.6.2
- MaterialDesignThemes (>= 4.7.0)
- Prism.Wpf (>= 8.1.97)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.1.0 | 428 | 1/11/2023 |