[]
        
(Showing Draft Content)

C1.WPF.Input.C1Tag

C1Tag Class

Visual element used inside a C1TagEditor.

Inheritance
C1Tag
Namespace: C1.WPF.Input
Assembly: C1.WPF.Input.dll
Syntax
[TemplatePart(Name = "Content", Type = typeof(ContentPresenter))]
[TemplatePart(Name = "Editor", Type = typeof(C1TextBoxBase))]
[TemplatePart(Name = "Remove", Type = typeof(C1Button))]
public class C1Tag : C1ContentControl

Constructors

Name Description
C1Tag()

Initializes a new instance of the C1Tag class.

Fields

Name Description
CloseIconStyleProperty

Identifies the CloseIconStyle dependency property.

CloseIconTemplateProperty

Identifies the CloseIconTemplate dependency property.

IsEditableProperty

Identifies the IsEditable dependency property.

IsInEditModeProperty

Identifies the IsInEditMode dependency property.

IsTagEditableProperty

Identifies the IsTagEditable dependency property.

Properties

Name Description
CloseIconStyle

Gets or sets the style applied to the close icon.

CloseIconTemplate

Gets or sets the template of the close icon.

IsEditable

Gets or sets a value that enables or disables editing of the text in text box of the control.

IsInEditMode

Gets or sets a value indicates whether the control enters in edit mode or not.

IsTagEditable

Gets or sets a value that determines whether the tag is editable or not.

Methods

Name Description
Dispose(bool)
OnApplyTemplate()
OnContentUpdating(object, CancelEventArgs)

Occurs before a tag end edit.

OnRemoveButtonClicked(object, RoutedEventArgs)

Occurs when remove button is clicked.

OnTagEdited(object, TagEditedEventArgs)

Occurs when a tag is edited.

UpdateVisualState()

Update the visual state of this control

Events

Name Description
ContentUpdating

Occurs before a tag's content is updating.

RemoveButtonClicked

Occurs when remove button is clicked.

TagEdited

Occurs when a tag is edited.