TabItem class Core
One tab of a TabControl's strip. Pressing it shows its page; the arrows walk the strip and show each page at once; a click on its close mark, Delete or Ctrl+F4 close it where it can close. Styled with Select.Type<TabItem>(), selected in TileStates.Checked.
public sealed class TabItem : Control
- Namespace
- ArionUI.Presentation.Controls
- Package
- ArionUI.Presentation ·
dotnet add package ArionUI.Presentation --prerelease - Inherits
- Control
Properties
DrawsOwnFocus
public override bool DrawsOwnFocus { get; }The control shows its focus itself (accent border, hover row, ring parameter). False = the host draws the shared default ring around Control.Bounds.
Focusable
public override bool Focusable { get; }Can this KIND of control hold the keyboard focus? Combined with the live probes in Control.CanTakeFocus.
Header
public string Header { get; }The caption of the tab.
IsSelected
public bool IsSelected { get; }Whether the tab's page is the one shown.
Page
public TabPage Page { get; }The page this tab shows.
Role
public override ControlRole Role { get; }What KIND of part this is for assistive technology — the automation peers translate it into their host's control type.
ToggleState
public override bool? ToggleState { get; }The checked state of a toggle part; null when the part does not toggle.
Methods
Invoke
public override bool Invoke();Act like a click on the part (a button fires, a checkbox flips, a menu row runs, a dropdown opens). False when the part has no action or is disabled.
Measure
public override LogSize Measure(LogSize available);Desired size given the space available (layout containers sum this).
OnKey
public override bool OnKey(ArionKey key, ArionModifiers mods);Keys while focused. Return false to let the pane's fallback see the key.
OnPointerLeft
public override void OnPointerLeft();The pointer stopped hovering this control (moved on or left the pane).
OnPointerMoved
public override void OnPointerMoved(LogPoint p, bool buttonDown);
OnPointerPressed
public override void OnPointerPressed(LogPoint p, ArionModifiers mods, int clickCount);
OnPointerReleased
public override void OnPointerReleased(LogPoint p);
Render
public override void Render(IRenderSurface s, ControlFrame frame);
SpokenLabel
public override string? SpokenLabel();What a screen reader speaks when this control receives the focus. A control that cannot take the focus but answers here is READ: it becomes a text part.