Is it possible to expand the search charm programmatically? I want to have a search button in my windows 8 app which expands the search charm.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
According to 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
回答2:
Windows.ApplicationModel.Search.SearchPane.GetForCurrentView().Show();
回答3:
Hi add this below method in App.xaml.cs file
protected async override void OnSearchActivated Windows.ApplicationModel.Activation.SearchActivatedEventArgs args)
{
}
标签:
winrt-xaml