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
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 ( |
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. |