Share via


SearchBar.SearchCommand Property

Definition

Gets or sets the command to execute when the user performs a search. This is a bindable property.

public:
 property System::Windows::Input::ICommand ^ SearchCommand { System::Windows::Input::ICommand ^ get(); void set(System::Windows::Input::ICommand ^ value); };
public System.Windows.Input.ICommand SearchCommand { get; set; }
member this.SearchCommand : System.Windows.Input.ICommand with get, set
Public Property SearchCommand As ICommand

Property Value

An ICommand to execute. The default is null.

Remarks

This command is executed when the user presses the search button on the keyboard or when OnSearchButtonPressed() is called. The SearchCommandParameter is passed as the command parameter.

Applies to