Skip to content
Version 2.32.0
↓ Get the launcher

InputElement.Locked property

Opt-in live lock: while the returned value is true the field is READ-ONLY (typing, paste, cut, delete and Enter-submit are blocked; focus, caret and selection still work, and Get still re-seeds the text) and its text is drawn DIMMED, as a “busy, please wait” state — e.g. a chat composer while its draft is being translated. Polled with the window refresh and diffed (only a change writes anything); the box keeps its size. Both the plain and the RichEmoji field. Default null = never locked, unchanged. Init property (NOT a ctor param) for binary compatibility.

public Func<bool>? Locked { get; set; }