SearchPaneQuerySubmittedEventArgs SearchPaneQuerySubmittedEventArgs SearchPaneQuerySubmittedEventArgs SearchPaneQuerySubmittedEventArgs SearchPaneQuerySubmittedEventArgs Class


Provides data for a querysubmitted event that is associated with a searchPane instance.

public : sealed class SearchPaneQuerySubmittedEventArgs
struct winrt::Windows::ApplicationModel::Search::SearchPaneQuerySubmittedEventArgs
public sealed class SearchPaneQuerySubmittedEventArgs
Public NotInheritable Class SearchPaneQuerySubmittedEventArgs
// This class does not provide a public constructor.

Windows 10 requirements

Device family
Windows Desktop Extension SDK (introduced v10.0.10240.0) Xbox One Extensions for the UWP (introduced v10.0.10586.0)
API contract
Windows.ApplicationModel.Search.SearchContract (introduced v1)


The Search contract sample demonstrates how to register a querysubmitted event handler.


You can access information about the event from the searchPaneQuerySubmittedEventArgs object that is passed to your querysubmitted event handler.

// Register QuerySubmitted handler for the window at window creation time and only registered once
// so that the app can receive user queries at any time.
SearchPane.GetForCurrentView().QuerySubmitted += new TypedEventHandler<SearchPane, SearchPaneQuerySubmittedEventArgs>(OnQuerySubmitted);
Windows.ApplicationModel.Search.SearchPane.getForCurrentView().onquerysubmitted = function (eventObject) {
    WinJS.log && WinJS.log("User submitted the search query: " + eventObject.queryText, "sample", "status");


This object is passed to an app's querysubmitted event handler.


Language Language Language Language Language

The Internet Engineering Task Force (IETF) language tag (BCP 47 standard) that identifies the language currently associated with the user's text input device.

LinguisticDetails LinguisticDetails LinguisticDetails LinguisticDetails LinguisticDetails

An object that provides linguistic information about query text that the user is entering through an Input Method Editor (IME).

QueryText QueryText QueryText QueryText QueryText

The text that was submitted through the search pane.

See also