Skip to content

TagChipRow

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

The layout of tags on one line (SDK 0.17.0; the device grid’s Tags column and TagChips): a chip per tag (theme style Border.tagChip: the name in the tag colour on a subtle background) and “+N” (TextBlock.tagMore) for the tags that do not fit the width; the tooltip lists every tag. A subclass hands its chips over with TagChipRow.SetChips.

public class TagChipRow : Panel

Inherits Panel
Derived TagChips

string MoreText { get; }

The “+N” text at the last arrange, empty when every chip fits (tests).

int ShownCount { get; }

Chips that fit at the last arrange (tests).

static Border CreateChip(TextBlock text)

One chip around text (its text and colour set or bound by the caller).

static Border CreateChip(TagChip tag)

One chip of a plain tag.

void SetChips(IReadOnlyList<Control> chips, IReadOnlyList<string> names)

Protected: for classes that derive from it

Shows chips in this order; names make the tooltip (none: no tooltip).