Skip to content
| Marketplace
Sign in
Visual Studio>Templates>Material Design WPF App with DialogUtils
Material Design WPF App with DialogUtils

Material Design WPF App with DialogUtils

Allen Lee

|
1,204 installs
| (0) | Free
A project template for creating a WPF application with Material Design In XAML Toolkit and DialogUtils.
Download

Dialogs are a little bit tricky in the world of MVVM because it can be easy to break the basic rule of MVVM by introducing dialogs inside view models. For example, you want to show a dialog when a user clicks a button which is typically data bound to a command of a view model, and the code to show the dialog is within the implementation of that command. If you create an instance of the dialog within that code, you're making your view model aware of a view, and hence the break of the basic rule of MVVM.

There's no simple way to deal with dialogs in MVVM. ReactiveUI's solution is to abstract the dialogs as interactions. Material Design In XAML Toolkit's solution is DialogHost. I'm using the latter in Aclass for Windows but extend it a little bit to make it easy to work with Microsoft MVVM Toolkit and Microsoft Dependency Injection/.NET Generic Host.

Super Quick Start

If you're going to start a new project, it is highly recommended to use the VSIX template installer to install a clean project template for your Visual Studio.

  1. Download the VSIX template installer from the latest release, and run it on your machine.
  2. Open Visual Studio and search "Material Design WPF App with DialogUtils" in project templates.
  3. Create a project with the "Material Design WPF App with DialogUtils" project template.
  4. Hit F5 to run the app.

Note that the project template further leverages Material Design Extensions for MaterialWindow and AppBar.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft