DrawString property returns text that is to be drawn in place of this display character. This is the property that's used by the DisplayCharacterPresenter control template to display the display character. It takes into account the focused state of the control as well as whether the display character is empty and if so it returns the prompt character.
As any state (for example focused) changes that affects this display character, the DrawString is updated to reflect the change.
Note: Typically there is no need for you to use this property. You would need to use this for example if you are writing a control template for an element that will display this display character.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2