Class TokenizedComboBox
Implementation of ComboBox that supports tokens when editable.
Inheritance
Implements
Inherited Members
Namespace: Phoenix.Aruba.Controls
Assembly: Phoenix.Plugin.Aruba.dll
Syntax
[TemplatePart(Name = "PART_EditableTextBox", Type = typeof(TokenizedTextBox))]
public class TokenizedComboBox : ComboBox, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IContainItemStorage, IAddChild
Constructors
View SourceTokenizedComboBox()
Initializes a new instance of the TokenizedComboBox class.
Declaration
public TokenizedComboBox()
Fields
View SourceFieldNameProperty
The field name associated with this tokenized combo box.
Declaration
public static readonly DependencyProperty FieldNameProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
HelperTextProperty
The helper text for this field.
Declaration
public static readonly DependencyProperty HelperTextProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
IsFromParentProperty
Whether this field was populated by a parent.
Declaration
public static readonly DependencyProperty IsFromParentProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
OverrideParentProperty
Whether the field is overriding the parent.
Declaration
public static readonly DependencyProperty OverrideParentProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ParentNameProperty
The name of the parent that is populating this field.
Declaration
public static readonly DependencyProperty ParentNameProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
TextProperty
The text content including {ResolverName:TokenName}-representation of tokens.
Declaration
public static readonly DependencyProperty TextProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
View SourceFieldName
Gets or sets the name of the field associated with this tokenized combo box.
Declaration
public string FieldName { get; set; }
Property Value
Type | Description |
---|---|
string |
HelperText
Gets or sets the helper text content.
Declaration
public string HelperText { get; set; }
Property Value
Type | Description |
---|---|
string |
IsFromParent
Gets or sets a value indicating whether the field is populated by its parent.
Declaration
public bool IsFromParent { get; set; }
Property Value
Type | Description |
---|---|
bool |
OverrideParent
Gets or sets a value indicating whether the field is overriding the parent.
Declaration
public bool OverrideParent { get; set; }
Property Value
Type | Description |
---|---|
bool |
ParentName
Gets or sets the name of the parent this field is getting it's value from.
Declaration
public string ParentName { get; set; }
Property Value
Type | Description |
---|---|
string |
ShouldUpdateTextOnSelection
Gets a value indicating whether the combo box should updated text on selection.
Declaration
protected virtual bool ShouldUpdateTextOnSelection { get; }
Property Value
Type | Description |
---|---|
bool |
Text
Gets or sets the text content.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
string |
TextBox
Gets or sets the text content.
Declaration
public TokenizedTextBox TextBox { get; set; }
Property Value
Type | Description |
---|---|
TokenizedTextBox |
Methods
View SourceFindMatchingPrefix(ItemsControl, string)
Declaration
protected virtual string FindMatchingPrefix(ItemsControl control, string prefix)
Parameters
Type | Name | Description |
---|---|---|
ItemsControl | control | |
string | prefix |
Returns
Type | Description |
---|---|
string |
OnApplyTemplate()
Adds an event handler to the inner text box when the ControlTemplate is applied.
Declaration
public override void OnApplyTemplate()
Overrides
View SourceOnPreviewKeyDown(KeyEventArgs)
Provides a fix for an issue where a read-only token in a TokenizedComboBox would not allow tab navigation.
Declaration
protected override void OnPreviewKeyDown(KeyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
KeyEventArgs | e | Event arguments. |
Overrides
View SourceOnSelectionChanged(SelectionChangedEventArgs)
Updates the inner text box when the user selects an item from the dropdown.
Declaration
protected override void OnSelectionChanged(SelectionChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
SelectionChangedEventArgs | e | The event parameter. |
Overrides
View SourceOnTemplateChanged(ControlTemplate, ControlTemplate)
Removes the event handler when the ControlTemplate is changed.
Declaration
protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate)
Parameters
Type | Name | Description |
---|---|---|
ControlTemplate | oldTemplate | The current ControlTemplate. |
ControlTemplate | newTemplate | The new ControlTemplate. |
Overrides
View SourceUpdateTextBox(string, string)
Declaration
protected virtual void UpdateTextBox(string match, string current)
Parameters
Type | Name | Description |
---|---|---|
string | match | |
string | current |