In This Article

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:

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

The suggested item related to this event, if applicable.

public object? Item { get; }

Property Value

object

OriginalText

The original text prior to the selection of a suggested item.

public string? OriginalText { get; }

Property Value

string

Reason

The reason for the event.

public AutoCompleteBoxChangeReason Reason { get; }

Property Value

AutoCompleteBoxChangeReason

Text

The text value related to this event.

public string? Text { get; set; }

Property Value

string

Inherited Members

Extension Methods