AutoCompleteBoxEventArgs Class
Provides event arguments for AutoCompleteBox events.
public class AutoCompleteBoxEventArgs : RoutedEventArgs
- Inheritance:
- Object EventArgs RoutedEventArgs Object
Constructors
AutoCompleteBoxEventArgs(AutoCompleteBoxChangeReason, Object)
Initializes a new instance of the AutoCompleteBoxEventArgs 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 a new instance of the AutoCompleteBoxEventArgs 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
Gets or sets 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
- Boolean:
true
if 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
Gets the suggested item related to this event, if applicable.
public object Item { get; }
Property Value
- Object:
The suggested item related to this event, if applicable.
OriginalText
Gets the original text prior to the selection of a suggested item.
public string OriginalText { get; }
Property Value
- String:
The original text prior to the selection of a suggested item.
Reason
Gets the reason for the event.
public AutoCompleteBoxChangeReason Reason { get; }
Property Value
- AutoCompleteBoxChangeReason:
The reason for the event.
Text
Gets or sets the text value related to this event.