UIMessage 1.0.1

dotnet add package UIMessage --version 1.0.1
                    
NuGet\Install-Package UIMessage -Version 1.0.1
                    
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="UIMessage" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="UIMessage" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="UIMessage" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add UIMessage --version 1.0.1
                    
#r "nuget: UIMessage, 1.0.1"
                    
#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.
#:package UIMessage@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=UIMessage&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=UIMessage&version=1.0.1
                    
Install as a Cake Tool

WPF Notification and Verification - Result UI

HOW TO USE:

Download the package from .NET CLI:
dotnet add package UIMessage --version 1.0.0
https://www.nuget.org/packages/UIMessage

Add "using UIMessage;" for easy use.

Notification UI window - popup (return type: void):

Notify.Show(); 1 required parameter:

  • ENotificationTypes (Type of the notification popup)
Available ENotificationTypes:
  • ENotificationTypes.Notifications
  • ENotificationTypes.Success
  • ENotificationTypes.Warning
  • ENotificationTypes.Error
Example:
Notify.Show(ENotificationTypes.Notifications)

Notify.Show(); 4 optional parameters:

  • title (Title of the notification popup), Default value: (Depends on ENotificationTypes)
  • message (Message of the notificcation popup), Default value: "" (Empty string)
  • ENotificationPositions (Position of the popup window), Default value: ENotificationPositions.BottomRight
  • milliseconds (Display time of the popup), Default value: 2000
Available ENotificationPositions:
  • ENotificationPositions.TopRight
  • ENotificationPositions.BottomRight
  • ENotificationPositions.TopLeft
  • ENotificationPositions.BottomLeft
Example:
Notify.Show(ENotificationTypes.Notifications, "Hello", "This is a message", ENotificationPositions.TopRight, 5000);

Verification - Result UI window - popup (return type: EVerifyResults):

Available EVerifyResults:
  • EVerifyResults.OK
  • EVerifyResults.CONFIRM
  • EVerifyResults.YES
  • EVerifyResults.NO
  • EVerifyResults.CANSEL
  • EVerifyResults.CLOSED

Verify.Show(); 1 required parameter:

  • EVerifyTypes (Type of the verification popup)
Available EVerifyTypes:
  • EVerifyTypes.OK
  • EVerifyTypes.CONFIRM
  • EVerifyTypes.YESNO
Example:
EVerifyResults result = Verify.Show(EVerifyTypes.YESNO);

Verify.Show(); 11 optional parameters:

  • title (Title of the window) Default value: "" (Empty string)
  • message (Message of the window) Default value: "" (Empty string)
  • confirmText (Text of the confirm button of the window) Default value: (Depends on EVerifyTypes)
  • cancelText (Text of the cancel button of the window) Default value: (Depends on EVerifyTypes)
  • backgroundColor (Background color of the window) Default value: new SolidColorBrush(Color.FromRgb(240, 240, 240))
  • textColor (Text color of the window) Default value: new SolidColorBrush(Color.FromRgb(10, 10, 10))
  • confirmBtnTextColor (Confirm button text color of the window) Default value: new SolidColorBrush(Color.FromRgb(10, 10, 10))
  • cancelBtnTextColor (Cancel button text color of the window) Default value: new SolidColorBrush(Color.FromRgb(10, 10, 10))
  • confirmButtonColor (Confirm button color of the window) Default value: new SolidColorBrush(Color.FromRgb(100, 240, 100))
  • cancelButtonColor (Cancel button color of the window) Default value: new SolidColorBrush(Color.FromRgb(240, 100, 100))
  • closeButtonColor (Sloce button color of the window ) Default value: new SolidColorBrush(Colors.Transparent))
Example:
EVerifyResults result = Verify.Show(
  EVerifyTypes.YESNO, 
  "Warnging", 
  "Do you want to delete this item ?",
  backgroundColor: new SolidColorBrush(Colors.Aqua),
  textColor: new SolidColorBrush(Colors.Black));
Product Compatible and additional computed target framework versions.
.NET net7.0-windows7.0 is compatible.  net8.0-windows was computed.  net9.0-windows was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net7.0-windows7.0

    • 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.0.1 178 1/10/2024
1.0.0 172 1/7/2024 1.0.0 is deprecated because it is no longer maintained.