Scover.Dialogs 1.2.0

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

// Install Scover.Dialogs as a Cake Tool
#tool nuget:?package=Scover.Dialogs&version=1.2.0                

Dialogs

NuGet

Managed Win32 task dialog wrapper. Supports all native Task Dialog features.

Usage

Simple

Shows a simple task dialog.

using Scover.Dialogs;

using Page page = new()
{
    Content = "Sample text",
    Buttons = { Button.Yes, Button.No }
};

var clickedButton = new Dialog(page).Show();

Multi-page

using Scover.Dialogs;

using Page page1 = new()
{
    MainInstruction = "Page #1",
    Buttons =
    {
        { "Label", "Supplemental instruction" },
        Button.Cancel
    }
};
using Page page2 = new()
{
    MainInstruction = "Page #2",
    Expander = new("Expanded information") 
};

var clickedButton = new MultiPageDialog(page1, new Dictionary<Page, NextPageSelector>
{
    [page1] = request => result.Closed ? null : page2,
}).Show();

Check out Tests.cs for more examples.

Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Scover.Dialogs:

Repository Stars
5cover/WinClean
Windows optimization and debloating utility.
Version Downloads Last updated
1.4.3 379 6/8/2023
1.4.2 273 3/9/2023
1.4.1 257 3/8/2023
1.4.0 264 3/5/2023
1.3.2 262 3/2/2023
1.3.1 283 3/1/2023
1.3.0 258 3/1/2023
1.2.0 263 2/25/2023

**1.2.0**
---

# Breaking changes
Changed type of Dialog.MnemonicPrefix to ``char``
Removed ``Page.IsCancelable`` because it's the same as having ``Button.Cancel`` in ``Page.Buttons``
Renamed ``Page.Close()`` to ``Page.Exit()``
Renamed ``ClosingEventArgs`` to ``ExitEventArgs``

# Non-breaking changes
Improved documentation
Added ``Button.Cancel``
Added ``Dialog.Close()``

# Bugfixes
Fixed a bug with navigation preventing state initialization
Fixed a bug with default values for parts in ``Page`` not requesting updates
Fixed a bug with ``Dialog.Handle`` not being updated when a dialog is shown twice