MaterialDesignThemes.Prism 0.1.0

dotnet add package MaterialDesignThemes.Prism --version 0.1.0                
NuGet\Install-Package MaterialDesignThemes.Prism -Version 0.1.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MaterialDesignThemes.Prism" Version="0.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MaterialDesignThemes.Prism --version 0.1.0                
#r "nuget: MaterialDesignThemes.Prism, 0.1.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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

  1. Features
  2. Examples

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 404 1/11/2023