Show / Hide Table of Contents

Class CheckListDialog

Dialog with list of check boxes.

public class CheckListDialog
Examples
string[] a = ["one", "two"];
var d = new CheckListDialog("Info.");
d.Add(a);
d.Add("three", true);
d.Add("four");
if (!d.ShowDialog()) return;
print.it(d.ResultBits, d.ResultIndices, d.ResultItems);

Namespace: Au.More
Assembly: Au.dll
Inheritance
object
CheckListDialog

Constructors

Name Description
CheckListDialog(string, string)

Creates CheckListDialog.Builder, sets some window properties, optionally sets static text.

Properties

Name Description
Builder

Gets the wpfBuilder that builds the dialog. You can use it to add more controls, change window properties, etc; see example.

ResultBits

Gets a bit array where elements represent checkbox states (true if checked). This property is set by ShowDialog.

ResultIndices

Gets 0-based indices of checked items. This property is set by ShowDialog.

ResultItems

Gets strings of checked items. This property is set by ShowDialog.

Methods

Name Description
Add(IEnumerable<string>, bool)

Adds multiple checkboxes.

Add(string, bool, string)

Adds a checkbox.

FormatText(InterpolatedString)

Sets formatted text, like wpfBuilder.FormatText.

SetButtons(string, string)

Changes text of OK and Cancel buttons.

ShowDialog(DependencyObject)

Adds OK/Cancel buttons, shows dialog, sets result properties.

See Also

EnumUI<TEnum>