Back to API Reference
Class

CaretContextBehavior

sealed
Inherits:InputBehavior

Hosts CaretContextHandlers — composable consumers of CaretContextChanged, each carrying its own serialized settings (StyleStateHandler for toolbar button state; subclass the handler for floating bubbles or custom context UI). Code-first consumers subscribe ContextChanged directly.

protected override void OnEnable()
protected override void OnDisable()
public Action<CaretContext> ContextChanged

Occurs when the caret context has changed, once per change with the full payload.