AutoCompleteBoxEventArgs Class
Provides event arguments for AutoCompleteBox events.
public class AutoCompleteBoxEventArgs : RoutedEventArgs
- Inheritance:
- object EventArgs RoutedEventArgs object
Constructors
AutoCompleteBoxEventArgs(AutoCompleteBoxChangeReason, object?)
Initializes an instance of the class.
public AutoCompleteBoxEventArgs(AutoCompleteBoxChangeReason reason, object? item)
| Parameter | Type | Description |
|---|---|---|
| reason | AutoCompleteBoxChangeReason | The reason for the event. |
| item | object | The suggestion item related to this event, if applicable. |
AutoCompleteBoxEventArgs(AutoCompleteBoxChangeReason, object?, string?)
Initializes an instance of the class.
public AutoCompleteBoxEventArgs(AutoCompleteBoxChangeReason reason, object? item, string? originalText)
| Parameter | Type | Description |
|---|---|---|
| reason | AutoCompleteBoxChangeReason | The reason for the event. |
| item | object | The suggestion item related to this event, if applicable. |
| originalText | string | The original text prior to the selection of a suggested item. |
Properties
IsPopupAllowed
Indicates whether the AutoCompleteBox is allowed to show its popup in response to the related text change when appropriate.
public bool IsPopupAllowed { get; set; }
Property Value
- bool:
trueif the AutoCompleteBox is allowed to show its popup in response to the related text change when appropriate; otherwise,false.
Remarks
This property is only used after the TextChanged event is raised.
Item
The suggested item related to this event, if applicable.
OriginalText
The original text prior to the selection of a suggested item.
Reason
The reason for the event.
Text
The text value related to this event.
Inherited Members
- EventArgs.Empty
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()