Skip to content

5cover/Dialogs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dialogs

CodeClimate CodeFactor

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

Information

In order to use activation contexts, this package copies the XPThemes.manifest file to the output directory.

Usage

Simple

Shows a simple task dialog.

using Scover.Dialogs;

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

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

Multi-page

using Scover.Dialogs;

using Page page1 = new()
{
    MainInstruction = "Page #1",
    Buttons = new(ButtonStyle.CommandLinks)
    {
        { "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 => request.Kind is NavigationRequestKind.Cancel ? null : page2,
}).Show();

Check out Tests.cs for more examples.

About

A Windows task dialog wrapper that also supports navigation and hyperlinks.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages