Are there ways/techniques (e.g. special UI controls, APIs) of preventing the UI trace from recording key strokes/data on a per 'field' basis? An obvious example would be disabling keystroke capture in a password text box. If there are such mechanisms for which Windows UI technologies are they available? My particular need is for WPF.

Unlike a Win32 application that has a password control in the GUI application which a Black Box can recognize; the Black Box does not have a way to distinguish different controls in an HTML page and automatically mask the keyboard input.