Back to API Reference
Class

StyleStateHandler

sealed
Implements:IModifierChangeSink

Edge-triggered toolbar-state handler: tracks whether typing now produces the configured style (IsStyleActive — pending typing styles win) and raises Changed only when the value flips, plus once with the initial state on attach.

public override void OnContextChanged()
public Action<bool> Changed

Occurs when the configured style's caret state flips and once on attach.