WPF.Custom.PopupDialogs
1.0.0
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
<PackageReference Include="WPF.Custom.PopupDialogs" Version="1.0.0" />
paket add WPF.Custom.PopupDialogs --version 1.0.0
#r "nuget: WPF.Custom.PopupDialogs, 1.0.0"
// 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:
Installation:
- Install the NuGet package 'CustomModalPopups' or use the DLL available in the DLL folder.
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 } }
- Use the following code with the required parameters:
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" );
- Use the following code with the required parameters:
These steps empower users to easily integrate and utilize custom modal popups in their WPF projects while adhering to the MVVM pattern."
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
- 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.
THIS PACKAGE CONTAINS CUSTOM MODAL POPUP OF "CustomConfirmModalPopup" AND "CustomAlertModalPopup".