Example #1
0
        private void InitSearchPane()
        {
            _searchPane.PlaceholderText     = "Keresés a BookTerán...";
            _searchPane.ShowOnKeyboardInput = false;

            var settings = new LocalContentSuggestionSettings()
            {
                Enabled = false,
            };

            _searchPane.SetLocalContentSuggestionSettings(settings);
        }
Example #2
0
        private void SetLocalContentSuggestions(bool isLocal)
        {
            // Have Windows provide suggestions from local files.
            // This code should be placed in your app's global scope and run as soon as your app is launched.
            var settings = new LocalContentSuggestionSettings();

            settings.Enabled = isLocal;
            if (isLocal)
            {
                settings.Locations.Add(KnownFolders.MusicLibrary);
                settings.AqsFilter = "kind:Music";
            }
            SearchBoxSuggestions.SetLocalContentSuggestionSettings(settings);
        }
Example #3
0
        private void SetLocalContentSuggestions(bool isLocal)
        {
            //<Snippetcs_localsuggestions>
            //<Snippetall_localsuggestions>
            // Have Windows provide suggestions from local files.
            // This code should be placed in your apps global scope and run as soon as your app is launched.
            var settings = new LocalContentSuggestionSettings();

            settings.Enabled = isLocal;
            if (isLocal)
            {
                settings.Locations.Add(KnownFolders.MusicLibrary);
                settings.AqsFilter = "kind:Music";
            }
            SearchPane.GetForCurrentView().SetLocalContentSuggestionSettings(settings);
            //</Snippetall_localsuggestions>
            //</Snippetcs_localsuggestions>
        }
        //
        // Summary:
        //     Occurs when the user picks a suggested search result.

        //public event TypedEventHandler<SearchBox, SearchBoxResultSuggestionChosenEventArgs> ResultSuggestionChosen;
        //
        // Summary:
        //     Occurs when the user's query text changes and the app needs to provide new
        //     suggestions to display in the search pane.

        //public event TypedEventHandler<SearchBox, SearchBoxSuggestionsRequestedEventArgs> SuggestionsRequested;

        // Summary:
        //     Specifies whether suggestions based on local files are automatically displayed
        //     in the search box suggestions, and defines the criteria that Windows uses
        //     to locate and filter these suggestions.
        //
        // Parameters:
        //   settings:
        //     The new settings for local content suggestions.

        public void SetLocalContentSuggestionSettings(LocalContentSuggestionSettings settings)
        {
        }
		//
		// Summary:
		//     Occurs when the user picks a suggested search result.

		//public event TypedEventHandler<SearchBox, SearchBoxResultSuggestionChosenEventArgs> ResultSuggestionChosen;
		//
		// Summary:
		//     Occurs when the user's query text changes and the app needs to provide new
		//     suggestions to display in the search pane.

		//public event TypedEventHandler<SearchBox, SearchBoxSuggestionsRequestedEventArgs> SuggestionsRequested;

		// Summary:
		//     Specifies whether suggestions based on local files are automatically displayed
		//     in the search box suggestions, and defines the criteria that Windows uses
		//     to locate and filter these suggestions.
		//
		// Parameters:
		//   settings:
		//     The new settings for local content suggestions.

		public void SetLocalContentSuggestionSettings(LocalContentSuggestionSettings settings)
		{ }