Windows 8.1 introduced a new control: SearchBox. It has a feature that remembers user searches which is good, but I want to allow the user to clear the search history. How do I implement that in code?
There is a ClearHistory
method on the SearchSuggestionManager
class that clears all search history contexts.
Code in C#:
var manager = new Windows.ApplicationModel.Search.Core.SearchSuggestionManager();
manager.ClearHistory();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With