QueryText property

SearchBox.QueryText property

[ Updated for UWP apps on Windows 10. For Windows 8.x articles, see the archive ]

Gets or sets the text contents of the search box.

Syntax


Public Property QueryText As String


<SearchBox QueryText="string"/>

Property value

Type: System.String [.NET] | Platform::String [C++]

A string containing the text contents of the search box. The default is an empty string (""). The maximum query text length is 2048 characters.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

None supported

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

SearchBox

 

 

Show:
© 2016 Microsoft