Simple and minimum TaskDialog library for .NET.
using System.Windows.Interop;
using TaskDialogLite;
var owner = new WindowInteropHelper(this).Handle;
var dialog = new TaskDialog
{
Title = "Delete file",
HeaderText = "Are you sure you want to delete this file?",
Buttons = [new("Delete"), TaskDialogButton.Cancel],
};
if (dialog.Show(owner) != TaskDialogButton.Cancel)
{
// ...
}Add the source files to your project or include this repository as a submodule.
- Windows
- .NET 10
This project is licensed under the BSD Zero Clause License.