Display Popup In .NET MAUI Using Community Toolkit

Поділитися
Вставка
  • Опубліковано 11 жов 2024
  • this video about displaying popup in .NET Maui application using community toolkit plugin.

КОМЕНТАРІ • 46

  • @MarkSze
    @MarkSze Рік тому +2

    Thanks for covering the MVVM way of opening the Popup, worked a treat!

  • @harag9
    @harag9 2 роки тому +1

    Thanks for this, It will be very handing in an app I'm currently trying to work on.

  • @muheshkumar6285
    @muheshkumar6285 11 місяців тому

    Thanks for this one bro, do more concepts like this🙏❤

  • @digitreapermc
    @digitreapermc 9 місяців тому

    Extremely helpful, thank you

  • @Elmigo94
    @Elmigo94 Рік тому

    Thanks for the useful video! If MainPage creates the popup, can I use MainPageViewModel for data binding with the popup?

  • @FunnyAnimals-mo8cu
    @FunnyAnimals-mo8cu 2 роки тому +1

    Thank you, this is very useful.

  • @franciscofernandezcasas7924
    @franciscofernandezcasas7924 2 роки тому +2

    Hi thanks for another amazing video, question: Why is 'Shell.PresentationMode="ModalAnimated"' not working in Toolkit Popup?

    • @ProgrammingWithPragnesh
      @ProgrammingWithPragnesh  2 роки тому

      Hi, I am not sure about it, I think you can add animation effect on Toolkit Popup, Or you can use Plugin.Maui.Popup in that I have used modal animated presentation mode.

  • @ake1818
    @ake1818 2 роки тому +1

    it's very helpful. thank you.

  • @luisjjjj
    @luisjjjj Рік тому +1

    Hi, great video, thank you. I have a question, I want to send an object through viewmodels, MainPage to PopupPage, could you show an example?

    • @romangrishin7035
      @romangrishin7035 Рік тому

      You can define some shared service class for that, ond resolve it using DI (it should be registered, as Singleton)

  • @KeshavPai-i7s
    @KeshavPai-i7s Рік тому +1

    Hi Pragnesh. Can you let me know if we can pass any data(dictionary for example) to the popup to display the dictionary data in the popup

    • @ProgrammingWithPragnesh
      @ProgrammingWithPragnesh  Рік тому

      Hi, you can pass data in constructor of Popup Page like this.
      var dictionarData = new Dictionary();
      dictionarData.Add("Hello", 1);
      this.ShowPopupAsync(new PopupPage(dictionarData));

  • @usmanmani9356
    @usmanmani9356 2 місяці тому

    Can we close the pop also in view model like we show popup ?

  • @cruik21
    @cruik21 Рік тому

    Hey Pragnesh, love your videos!
    Could you give me a hint how to close the pooup from the ViewModel? Can´t find any suitable solution besides from create a static popuphandler which manages all the created and opened popups :/
    is there an easier way ?

    • @ProgrammingWithPragnesh
      @ProgrammingWithPragnesh  Рік тому +1

      Sorry, I am also not able to find any direct method that I can invoke to close popup. I think you can take a look at www.nuget.org/packages/Plugin.Maui.Popup this plugin.
      In that you can close popup from anywhere.

    • @cruik21
      @cruik21 Рік тому

      @@ProgrammingWithPragnesh thanks in advice, merry christmas!
      i tried that wrapper already, its too slow for me. for now i am just setting in my viewmodel which i inject in my page the page as an property to close it via my viewmodel

    • @ProgrammingWithPragnesh
      @ProgrammingWithPragnesh  Рік тому

      yeah right, now you can do that way, i hope in future update they provide common method to close popup. and merry Christmas you too

  • @mikp1280
    @mikp1280 2 роки тому +1

    Hi, thank you. I was searching for this a while. Can you show if it is possible to Scroll inside the popup. I have a long List where the user has to select an item.

    • @ProgrammingWithPragnesh
      @ProgrammingWithPragnesh  2 роки тому

      Hi, You can add collection view inside popup page.

    • @mikp1280
      @mikp1280 2 роки тому +1

      @@ProgrammingWithPragnesh Thanks. I tried but it's not scrollable. I will figure it out. :)

    • @ProgrammingWithPragnesh
      @ProgrammingWithPragnesh  2 роки тому +1

      @@mikp1280 Okay, I will do one thing, I will add scrollable content in this project soon and share you repo here.

    • @mikp1280
      @mikp1280 2 роки тому +1

      @@ProgrammingWithPragnesh You are my hero :)

    • @ProgrammingWithPragnesh
      @ProgrammingWithPragnesh  2 роки тому

      Here is the repo url : github.com/mistrypragnesh40/CommunityPopup

  • @mandardesai3841
    @mandardesai3841 5 місяців тому

    CanBeDismissedByTappingOutsideOfPopup is not working if value set to true. It not close if i click outside popup any help?

  • @SaurabhKumar-ys1rk
    @SaurabhKumar-ys1rk 8 місяців тому

    Is rg plugin is also working for MAUI or not?

  • @ameenalyaghshy4463
    @ameenalyaghshy4463 3 місяці тому

    What is android simulator you are using in this video please

  • @ake1818
    @ake1818 2 роки тому +1

    Hi, Pragnesh, I want to read a xml file to a list when opening an app and save the data list to this xml file when the app is back or shut down. how to do this? I research the Maui's web, I can't solve it. Could you make a video for it?

    • @ProgrammingWithPragnesh
      @ProgrammingWithPragnesh  2 роки тому

      HI Sorry, I didn't get you. Your mean storing data in local file?

    • @ake1818
      @ake1818 2 роки тому +1

      @@ProgrammingWithPragnesh I finished this using SQLite. thank your reply.😀

  • @moawadabdelbasset9896
    @moawadabdelbasset9896 2 роки тому +1

    thanks for you
    which android emulator you use

  • @jcwdhvh646
    @jcwdhvh646 2 роки тому +1

    Hello, I created random JSON data picker , how to display it on popup?

    • @ProgrammingWithPragnesh
      @ProgrammingWithPragnesh  2 роки тому

      Hi I didnt get you, your mean displaying list of data in popup or just one control?

  • @yayusuwardi8934
    @yayusuwardi8934 Рік тому +1

    Sir could you please make a video for ComunityToolkit.Messenger for delete, update or insert record from popup to mainview of records list.

    • @ProgrammingWithPragnesh
      @ProgrammingWithPragnesh  Рік тому

      HI , You can take a look at this video ua-cam.com/video/msqHEVgPap8/v-deo.html,
      In this video I' m accessing command of one page to other page.

    • @yayusuwardi8934
      @yayusuwardi8934 Рік тому

      @@ProgrammingWithPragnesh Thank you very much sir

  • @SaqibAli-do7yg
    @SaqibAli-do7yg Рік тому +1

    Need example i.e . carosel with livecharts2 and datatable

    • @ProgrammingWithPragnesh
      @ProgrammingWithPragnesh  Рік тому

      Hi , I created one video on Carousel view ua-cam.com/video/R6Uah-USuxU/v-deo.html, You can go through it.
      For Live chart I will try to create video in future.

  • @silientlips
    @silientlips 2 роки тому +1

    Is it possible to reDuce the apk file size of .NET MAUI?

    • @ProgrammingWithPragnesh
      @ProgrammingWithPragnesh  2 роки тому

      HI, I didn't tried yet, I will check and let you know.

    • @silientlips
      @silientlips 2 роки тому

      @@ProgrammingWithPragnesh I hope you will create a tutorial on how to reduce the file size of an APK using .NET MAUI. The file size of the APK of Flutter is very small compared to the APK of .NET MAUI.
      Thank you...