ComponentOne Input Library for WPF
Input Library Overview / Tag Editor / Work with TagEditor / Placeholder
In This Topic
    Placeholder
    In This Topic

    TagEditor lets you add a placeholder to display a watermark text when nothing is entered in it. You can use the placeholder to prompt user to enter items in the control as shown in the image below. The C1TagEditor class provides the Placeholder property that allows you to add watermark text in the control.

    Placeholder set in the TagEditor control

    To add a placeholder to the TagEditor control, use the Placeholder property as shown in the following code:

    <c1:C1TagEditor Name="te" Placeholder="Enter items" HorizontalAlignment="Left" VerticalAlignment="Top" Width="280" Margin="10" />
    
    C1TagEditor te = new C1TagEditor();
    te.Placeholder = "Enter items";