CustomWpfBoxes 1.0.2
dotnet add package CustomWpfBoxes --version 1.0.2
NuGet\Install-Package CustomWpfBoxes -Version 1.0.2
<PackageReference Include="CustomWpfBoxes" Version="1.0.2" />
paket add CustomWpfBoxes --version 1.0.2
#r "nuget: CustomWpfBoxes, 1.0.2"
// Install CustomWpfBoxes as a Cake Addin #addin nuget:?package=CustomWpfBoxes&version=1.0.2 // Install CustomWpfBoxes as a Cake Tool #tool nuget:?package=CustomWpfBoxes&version=1.0.2
WPF Material Message Box
A WPF Message Box implementing material design
❇️ Main Features
The message box has the following custom features:
✅ Message box can contain checkbook
✅ Custom names for buttons
✅ Utilities to copy message box text or entire window as image to clipboard
✅ Scrollable message box content
✅ Input box uses classical text input or combobox input
✅ Button for adding clipboard content into input box
❇️ Installing
▶️ Install from Package manager Console
$ Install-Package CustomWpfBoxes
Or, if using dotnet
$ dotnet add package CustomWpfBoxes
❇️ Usage (Screenshots)
add using statement
using MaterialDesignBoxes;
Using a default message box
MessageBox.Show($"This is a message.", "Custom Title", MessageBoxButton.OkOnly, MessageBoxIcon.Information, MessageBoxFocus.Button1, MessageBoxToolsVisibility.Visible);
or if you need the result
var outcome = MessageBox.Show($"This is a message.", "Custom Title", MessageBoxButton.OkOnly, MessageBoxIcon.Information, MessageBoxFocus.Button1, MessageBoxToolsVisibility.Visible);
MessageBoxResult result = outcome.Result;
if (result == MessageBoxResult.OK);
Using a message box with checkbox
var result = MessageBox.Show($"This is a message.", "Checkbox Message", checkBox: "This is a checkbox");
MessageBoxCheckbox checkbox = outcome.Checkbox;
if (checkbox == MessageBoxCheckbox.Checked)
Using a message with custom buttons (1-3 custom bottons)
MessageBox.Show("This is a message.", "Title", button1: "Done");
MessageBox.Show("This is a message.", "Title", button1: "Apply", button2: "Exit");
var outcome = MessageBox.Show("This is a message.", "Title", button1: "Help", button2: "Submit", button3: "Quit", MessageBoxIcon.Information);
if (outcome.Result == MessageBoxResult.Button1);
Using a text input box
string result = InputBox.Show("Plese enter a name:", "Input Box", string.Empty, InputBoxOption.SingleLine, InputBoxExtraButton.All);
Using combobox input box
var result = InputBox.Show("Please choose item:", new string[] { "Item1", "Item2", "Item3" });
❇️ Sources used
Icon source https://icon-icons.com/
❇️ Contributing to this project
You could always contact me through Email for any feature or issue. ⭐
You need Visual Studio 2015 Community/Enterprise Edition (upwards) to build and test the solution.
❇️ Licence
The MIT License (MIT)
Copyright (c) 2023, Coltherion
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net472 is compatible. net48 is compatible. net481 was computed. |
-
.NETFramework 4.7.2
- No dependencies.
-
.NETFramework 4.8
- 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.