Reputation: 516
I am working on windows phone 8 app,Want to add button with text Search(In place of Enter Button) while click on search textbox jsut like in Store search it shows white button in place of Enter button on keyboard.
Upvotes: 1
Views: 1036
Reputation: 516
I got good alternative...
InputScope inputScope = new InputScope();
InputScopeName inputScopeName = new InputScopeName();
inputScopeName.NameValue = InputScopeNameValue.Search;
inputScope.Names.Add(inputScopeName);
TextBox11.InputScope = inputScope;
Upvotes: 2
Reputation: 448
To follow the standards you really only should set the InputScope to search. Not a "search" text, but the Windows Phone standard search keyboard.
<TextBox InputScope="Search" />
Upvotes: 2