WPF.Custom.PopupDialogs 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package WPF.Custom.PopupDialogs --version 1.0.0
NuGet\Install-Package WPF.Custom.PopupDialogs -Version 1.0.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="WPF.Custom.PopupDialogs" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WPF.Custom.PopupDialogs --version 1.0.0
#r "nuget: WPF.Custom.PopupDialogs, 1.0.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 WPF.Custom.PopupDialogs as a Cake Addin
#addin nuget:?package=WPF.Custom.PopupDialogs&version=1.0.0

// Install WPF.Custom.PopupDialogs as a Cake Tool
#tool nuget:?package=WPF.Custom.PopupDialogs&version=1.0.0

The objective of developing this project is to facilitate users in implementing customized modal popups in WPF, especially within the MVVM pattern. It offers a straightforward implementation process, allowing users to create modal popups tailored to their project's specific themes and requirements.

Here are the steps to use this project:

  1. Installation:

    • Install the NuGet package 'CustomModalPopups' or use the DLL available in the DLL folder.
  2. To display the 'CustomConfirmModalPopup' modal popup in MVVM:

    • Use the following code with the required parameters:
      // I) Show the modal popup
      ModalCustomAlertPopupInstanceHandler.GetInstance.ShowCustomConfirmDialog(
          headerTitle: "Information",
          modalPopupMessageText: "Do you want to close this popup?",
          messageBoxImageIconType: CustomMessageBoxImage.Information,
          modalPopupFirstButtonText: "OK",
          modalPopupSecondButtonText: "Cancel"
      );
      
      // II) Register the event handler in your constructor to get the dialog result
      CommonEvents.ModalConfirmDialogCallbackHandler += CommonEvents_ModalPopupCallbackHandler;
      
      private void CommonEvents_ModalPopupCallbackHandler(object sender, ProcessEventArgs e)
      {
          if (e.DialogResult)
          {
              // Perform your task when 'OK' is clicked
          }
          else
          {
              // Perform an action when 'Cancel' is clicked
          }
      }
      
  3. To display the 'CustomAlertModalPopup' modal popup in MVVM:

    • Use the following code with the required parameters:
      ModalCustomAlertPopupInstanceHandler.GetInstance.ShowCustomAlertDialog(
          headerTitle: "Information",
          modalPopupMessageText: "This is a custom message box",
          messageBoxImageIconType: CustomMessageBoxImage.Information,
          modalPopupButtonText: "OK"
      );
      

These steps empower users to easily integrate and utilize custom modal popups in their WPF projects while adhering to the MVVM pattern."

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.
  • .NETFramework 4.6.2

    • No dependencies.

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
1.3.1 145 10/8/2023
1.2.0 150 10/8/2023
1.0.1 115 10/8/2023
1.0.0 115 9/30/2023

THIS PACKAGE CONTAINS CUSTOM MODAL POPUP OF "CustomConfirmModalPopup" AND "CustomAlertModalPopup".