CheckChoice
Class in Oadm.Sdk.Client.Controls · Oadm.Sdk.Client.dll
A plain ICheckChoice with the item behind it.
public sealed class CheckChoice : ObservableObject, ICheckChoiceInherits ObservableObject
Implements ICheckChoice
Example
<ComboBox Classes="multiSelect" ItemsSource="{Binding Sites.Entries}" PlaceholderText="{Binding Sites.Summary}" />Constructors
Section titled “Constructors”CheckChoice
Section titled “CheckChoice”CheckChoice(object? value, string name, string detail = "")A choice for value.
Properties
Section titled “Properties”Chosen
Section titled “Chosen”bool Chosen { get; set; }Ticked.
Detail
Section titled “Detail”string Detail { get; }The grey second line; empty for none.
string Name { get; }The first line.
object? Value { get; }The item behind the choice (a site id, a card); null for an “All” entry.
Methods
Section titled “Methods”SetChosen
Section titled “SetChosen”void SetChosen(bool chosen)Ticks or unticks it without raising CheckChoice.ChosenChanged (the state of the data).
Events
Section titled “Events”ChosenChanged
Section titled “ChosenChanged”event EventHandler? ChosenChangedThe user ticked or unticked it (not raised by CheckChoice.SetChosen).