Xamarin Forms with Visual Studio Part 27 [SearchBar]

Поділитися
Вставка
  • Опубліковано 17 гру 2024

КОМЕНТАРІ • 23

  • @MarlonDiasBR
    @MarlonDiasBR 8 років тому +1

    Your videos are great! Straight to the point! Thanks for sharing.

  • @RiskyBizz
    @RiskyBizz 6 років тому

    thanks for the very straight forward tutorial. I subscribed, and hope to find other great videos as well

  • @marchel839
    @marchel839 7 років тому +2

    Hello Houssem Dellai, I would like to ask you, can we make a search bar, but the data is from the database?
    Please make a tutorial :)

  • @oricchannel2811
    @oricchannel2811 8 років тому

    Hi Houssem !
    Thank you to share with us. Nice video.
    Is it possible to make a new video based on this on, but with MVVM approach?
    Best regards,
    Ciro.

  • @JoseDonosoM
    @JoseDonosoM 5 років тому

    Any video where you show how to data from a secondary page to the main page?

  • @shekharbhattarai8126
    @shekharbhattarai8126 8 років тому

    Hi i want to implement this using mvvm , observablecollection and inotifypropertychanged but things are not working..can u pls help me out here

  • @richyabraham6657
    @richyabraham6657 8 років тому

    Getting error "System.NullReferenceException: Object reference not set to an instance of an object". I'm trying to retrieve names from my dummy SQLite database.My search TextChanged function definition;/// void Member_Searchbar_TextChanged(object sender, EventArgs e)
    {
    string keyword = MemberSearchBar.Text;
    MemberlistView.BeginRefresh();
    if (string.IsNullOrWhiteSpace(keyword))
    {
    MemberlistView.ItemsSource = App.Database.GetFriends();
    }
    else
    {
    IEnumerable searchRes = App.Database.GetFriends().Where(x => x.Fname.Contains(keyword));
    MemberlistView.ItemsSource = searchRes;
    }
    MemberlistView.EndRefresh();
    }//////Friends is my viewmodel, GetFriends to query to select all friends, and Fname is an entry in Friends.

  • @samialfarra4275
    @samialfarra4275 8 років тому

    thank you Houssem please i want to ask why search bar text is always is empty
    private void MainSearchBar_OnSearchButtonPressed(object sender, EventArgs e)
    {
    string keyword = MainSearchBar.Text;
    DisplayAlert("title", keyword, "cancel");
    // IEnumerable serachResult= _names.Where(name => name.Contains(koko));
    // MainListView.ItemsSource = serachResult;
    }
    i test in windows emulator and android but when write in search bar not show any thing

    • @HoussemDellai
      @HoussemDellai  8 років тому

      That's weird ! Try sharing your XAML code, please ?

    • @ujjualus4883
      @ujjualus4883 7 років тому

      i had the issue but it was solved after a Rebuild

  • @hashirmalik3744
    @hashirmalik3744 5 років тому

    .Contains is not showing whyyy ? can you help please

  • @rubenflores3888
    @rubenflores3888 8 років тому

    Thanks a lot .! great videos :D

  • @samialfarra4275
    @samialfarra4275 8 років тому

    that is working only in android emulator when press on enter in keyboard . but it is not working when press search button on emulator

    • @HoussemDellai
      @HoussemDellai  8 років тому

      Oh yeah! It doesn't work from the icon! I think it is Okay siince users are more familiar/expecting with search button on the keyboard :)

    • @waqarahmed-qz1tt
      @waqarahmed-qz1tt 8 років тому

      Cancel button is not working also. It should reset the ListView on cancel

    • @HoussemDellai
      @HoussemDellai  8 років тому

      I'm not sure why is that behavior!

    • @briandquentin673
      @briandquentin673 5 років тому

      work with TextChanged event

  • @salvajez1
    @salvajez1 5 років тому

    Thanks