CustomWpfBoxes 1.0.1

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

// Install CustomWpfBoxes as a Cake Tool
#tool nuget:?package=CustomWpfBoxes&version=1.0.1                

WPF Material Message Box

A WPF Message Box implementing material design

Release

Nuget

Nuget

❇️ 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

▶️ Download from Nuget ⤵

▶️ 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);

Default Message

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)

Message box with checkbox

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);

Message box with custom buttons

Using a text input box

string result = InputBox.Show("Plese enter a name:", "Input Box", string.Empty, InputBoxOption.SingleLine, InputBoxExtraButton.All);

Text input box

Using combobox input box

var result = InputBox.Show("Please choose item:", new string[] { "Item1", "Item2", "Item3" });

Combobox input box

❇️ Sources used

Icon source https://icon-icons.com/

❇️ Contributing to this project


❇️ 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 Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .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.

Version Downloads Last updated
1.0.2 268 11/13/2023
1.0.1 164 8/1/2023
1.0.0 152 7/31/2023