예제 #1
0
 private async void artistsSearchListClicked(object sender, ItemClickEventArgs e)
 {
     await DispatcherHelper.RunAsync(() =>
     {
         SheetUtility.CloseSearchCollectionPage();
         App.Navigator.GoTo <CollectionArtistPage, ZoomInTransition>(((Artist)e.ClickedItem).Id);
     });
 }
예제 #2
0
        //private void TextChanged(AutoSuggestBox sender, AutoSuggestBoxTextChangedEventArgs args)
        //{
        //    //We only want to get results when it was a user typing,
        //    //otherwise we assume the value got filled in by TextMemberPath
        //    //or the handler for SuggestionChosen
        //    if (args.Reason == AutoSuggestionBoxTextChangeReason.UserInput)
        //        App.Locator.CollectionSearch.SearchInCollectionPhase1(sender.Text);
        //}



        private async void artistClicked(object sender, Windows.UI.Xaml.Input.TappedRoutedEventArgs e)
        {
            await DispatcherHelper.RunAsync(() =>
            {
                SheetUtility.CloseSearchCollectionPage();
                App.Navigator.GoTo <CollectionArtistPage, ZoomInTransition>(App.Locator.CollectionSearch.Artists.Id);
            });
        }
예제 #3
0
        private async void songsSearchListClicked(object sender, ItemClickEventArgs e)
        {
            await DispatcherHelper.RunAsync(async() =>
            {
                SheetUtility.CloseSearchCollectionPage();

                Song s         = e.ClickedItem as Song;
                var queueSongs = App.Locator.CollectionSearch.Songs.ToList();
                int index      = queueSongs.IndexOf(s);
                queueSongs     = queueSongs.Skip(index).ToList();

                if (queueSongs != null && queueSongs.Count > 0)
                {
                    await PlayAndQueueHelper.PlaySongsAsync(s, queueSongs, true);
                }
            });
        }