Beispiel #1
0
        private void Search_TextChanged(object sender, TextChangedEventArgs e)
        {
            string Search = SearchText.Text.Trim();

            if (!String.IsNullOrEmpty(Search))
            {
                ViewModel.SearchByText(Search);
            }
            else
            {
                ViewModel.CallService();
            }
        }
Beispiel #2
0
 private void OnPageLoaded(object sender, RoutedEventArgs e)
 {
     this.ViewModel = DataContext as FilmPageViewModel;
     ViewModel.CallService();
 }