ItemAccessory

A native affordance pinned to an item's edge, outside the item content.

Add accessories to ItemView<TItem>.Accessories in the item template constructor. Each kind maps to a system UICellAccessory, so UIKit owns its glyph, spacing, tint, right-to-left behavior and accessibility. List layouts only.

public abstract class ItemAccessory

Properties

Display

Which collection modes show the accessory. Defaults to AccessoryDisplay.Always.

Type: AccessoryDisplay

public AccessoryDisplay Display { get; init; }

IsVisible

Whether the accessory is visible, bindable like any control property. Defaults to true.

A hidden accessory takes no layout space, and the row reflows like a native list row.

Type: Bindable<bool>

public Bindable<bool> IsVisible { get; set; }

Tint

The color applied to the accessory, or null for the system default.

Type: Bindable<Color?>

public Bindable<Color?> Tint { get; set; }