DisplayCharacterPresenter Class

Represents individual character of MaksedEditor when it's in edit mode.
Public Class DisplayCharacterPresenter 
   Inherits System.Windows.Controls.ContentControl
public class DisplayCharacterPresenter : System.Windows.Controls.ContentControl 

This element is used only when the masked editor is in edit mode. When not in edit mode, the XamMaskedEditor uses a TextBlock to display the value. Note: Whether XamMaskedEditor remains in edit mode at all times or not can be controlled using its ValueEditor.IsAlwaysInEditMode property.

Each display character in the parsed mask has a DisplayCharacterPresenter in the visual tree of the XamMaskedEditor when it's in edit mode. XamMaskedEditor.DisplayChars returns all display characters of a XamMaskedEditor. Also each Section has a collection of display characters (SectionBase.DisplayChars).

Note: Typically there is no need to deal with the elements in the visual tree directly as they are managed by the XamMaskedEditor itself.


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

See Also