Skip to content

CheckChoice

Class in Oadm.Sdk.Client.Controls · Oadm.Sdk.Client.dll

A plain ICheckChoice with the item behind it.

public sealed class CheckChoice : ObservableObject, ICheckChoice

Inherits ObservableObject
Implements ICheckChoice

Example

<ComboBox Classes="multiSelect" ItemsSource="{Binding Sites.Entries}" PlaceholderText="{Binding Sites.Summary}" />
CheckChoice(object? value, string name, string detail = "")

A choice for value.

bool Chosen { get; set; }

Ticked.

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.

void SetChosen(bool chosen)

Ticks or unticks it without raising CheckChoice.ChosenChanged (the state of the data).

event EventHandler? ChosenChanged

The user ticked or unticked it (not raised by CheckChoice.SetChosen).