Skip to content
This repository was archived by the owner on Jan 10, 2022. It is now read-only.

A small helper Library to use with MaterialDesignInXamlToolkit, it allows displaying some common dialogs and returning a result.

License

Notifications You must be signed in to change notification settings

Proless/MaterialXAMLDialogs

Repository files navigation

MaterialXAMLDialogs

Build NuGet

A small helper Library to use with MaterialDesignInXamlToolkit, it allows displaying some common dialogs and returning a result.

Usage

For each dialog type there are a specific class, which you can instansiate and configure depending on the dialog type.

Example:

var config = new AlertDialogConfiguration
{
  Title = "Confirm",
  SupportingText = "This is a Alert dialog which requires User intervention to proceed",
  DialogButtons = DialogButtons.YesNo,
  IconKind = PackIconKind.Alert,
  ShowAdditionalOption = true,
  AdditionalOptionText = "Don't show this again",
  IsAdditionalOptionCheched = false
};
var dialog = new AlertDialog(config);
var result = await dialog.Show("Root");
Result = $"{result}, {dialog.AdditionalOptionChecked}";

Dialog Types

Alert Dialog

Alert

Buttons can be :

  • OK,
  • YesNo
  • OKCancel
  • RetryCancel
  • YesNoCancel
  • AbortRetryIgnore

Icon is of type PackIcon so you can use any icon kind from MaterialDesigninXamlToolkit. It is also possible to set the foreground brush of the Icon.

Selection Dialog

Selection

Progress Dialog

Determinate

InDeterminate

Circular Indeterminate Progress Dialog

Circular InDeterminate Progress

Plans

  • Add localization support for different languages
  • Add support for custom Dialog with up to three buttons

About

A small helper Library to use with MaterialDesignInXamlToolkit, it allows displaying some common dialogs and returning a result.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages