Matix.Notification
0.1.5
dotnet add package Matix.Notification --version 0.1.5
NuGet\Install-Package Matix.Notification -Version 0.1.5
<PackageReference Include="Matix.Notification" Version="0.1.5" />
paket add Matix.Notification --version 0.1.5
#r "nuget: Matix.Notification, 0.1.5"
// Install Matix.Notification as a Cake Addin #addin nuget:?package=Matix.Notification&version=0.1.5 // Install Matix.Notification as a Cake Tool #tool nuget:?package=Matix.Notification&version=0.1.5
Matix's Notifications
Matix Notifications is a simple .NET class to create costum Notifications.
How to use
If you want to display a Notification, you first need to create a Notification.
Create a Notification:
To create a Notification, you must define a new Notification
Dim Notific As New Notification
Now let us define the Title and the content of our Notification
Dim Notific As New Notification
Notific.Title = "My Application"
Notific.Content = "Hello World!"
Alright, now we add an Icon to our Notification
Dim Notific As New Notification
Notific.Title = "My Application"
Notific.Content = "Hello World!"
Notific.Image = New Bitmap(Path.Combine(Application.StartupPath, "ico.png"))
Nice, now let us define that our Notification close after 5 Seconds. You write the Interval in Milliseconds
Dim Notific As New Notification
Notific.Title = "My Application"
Notific.Content = "Hello World!"
Notific.Image = New Bitmap(Path.Combine(Application.StartupPath, "ico.png"))
Notific.AutoClose = True
Notific.AutoCloseInterval = 5000
You can also let the Notification stay and close it manually (more to this later)
Okay, now we can change the Background color of our Notification
Dim Notific As New Notification
Notific.Title = "My Application"
Notific.Content = "Hello World!"
Notific.Image = New Bitmap(Path.Combine(Application.StartupPath, "ico.png"))
Notific.AutoClose = True
Notific.AutoCloseInterval = 5000
Notific.BackColor = Color.DarkSeaGreen
Now you have created your first Notification with Matix's Notification applause.
Show a Notification:
To display your created Notification, you must just tap in [Your Notification].Show()
Like this:
Dim Notific As New Notification
Notific.Title = "My Application"
Notific.Content = "Hello World!"
Notific.Image = New Bitmap(Path.Combine(Application.StartupPath, "ico.png"))
Notific.AutoClose = True
Notific.AutoCloseInterval = 5000
Notific.BackColor = Color.DarkSeaGreen
Notific.Show()
Close a Notification manually:
To close your Notification manally, just write [Your Notification].Close()
In your code.
Like we did:
Dim Notific As New Notification
Notific.Title = "My Application"
Notific.Content = "Hello World!"
Notific.Image = New Bitmap(Path.Combine(Application.StartupPath, "ico.png"))
Notific.AutoClose = True
Notific.AutoCloseInterval = 5000
Notific.BackColor = Color.DarkSeaGreen
Notific.Show()
System.Threading.Thread.Sleep(1000)
Notific.Close()
Thats it.
Licens
This class is open-source and free to use. But you must write Notifications DLL by Matix Media, Inc.
In your credits.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
This package has 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 |
---|
Pre-Release, not finished yet.