Expand search Charm programmaticaly

Is it possible to programmatically expand the search charm? I want a search button to appear in my Windows 8 application that extends the charm of the search.

+1
source share
3 answers

According to the object browser:

public void Show(string query) 

Member of Windows.ApplicationModel.Search.SearchPane .

see http://msdn.microsoft.com/en-us/library/windows/apps/windows.applicationmodel.search.searchpane.show.aspx

+5
source

Windows.ApplicationModel.Search.SearchPane.GetForCurrentView () Show () ;.

0
source

Hi, add this method below to the App.xaml.cs file

 protected async override void OnSearchActivated Windows.ApplicationModel.Activation.SearchActivatedEventArgs args) { } 
-1
source

Source: https://habr.com/ru/post/923324/


All Articles