Pass Data From and To Popups with Xamarin Community Toolkit

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.ค. 2024
  • Under my video about the Xamarin Community Toolkit popups I got a lot of questions about passing data to or returning data from the popup. In this video we will see two examples: returning simple data from the popup and also how to pass in data and return a strongly typed complex object. After this you know all about implementing rich popups in your Xamarin.Forms app.
    Lots to cover in this one, let's goooo!
    💝 Join this channel to get access to perks:
    th-cam.com/users/GeraldVerslui...
    🛑 Don't forget to subscribe to my channel for more amazing content: th-cam.com/users/GeraldVerslui...
    🐦 Follow me on Twitter: / jfversluis
    🔗 Links
    Sample App Repo: github.com/jfversluis/XCTPopu...
    Basic Popups Usage Video: • Perfect Popups for Xam...
    Popup Xamarin Show Part 1: • Xamarin Community Tool...
    Popup Xamarin Show Part 2: • Xamarin Community Tool...
    Xamarin.CommunityToolkit Repo: aka.ms/xct
    Xamarin.CommunityToolkit Docs: aka.ms/xct-docs
    ⏱ Timestamps
    00:00 - Intro
    00:20 - Inspect End Result
    01:04 - Members Appreciation Chapter
    01:53 - Sample App Outline
    02:37 - Implement Basic Popup
    04:09 - Show Popup
    06:25 - Return Simple Value from Popup
    08:16 - Run Sample App: Return Simple Data
    09:14 - Pass In and Return Data from Popup
    11:51 - Strongly Type Popup Return Data
    14:24 - Call Popup with Data and Get Return Data
    15:25 - Run Fully Implemented Sample
    16:13 - Outro
    🎥 Video edited with Camtasia (ref): techsmith.z6rjha.net/AJoeD
    🙋‍♂️ Also find my...
    Twitter: / jfversluis
    Blog: blog.verslu.is
    Twitch: / jfversluis
    All the rest: jfversluis.dev
    #XamarinForms #XamarinCommunityToolkit #Popups #Xamarin #XCT
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 71

  • @Orgbrat
    @Orgbrat 3 ปีที่แล้ว

    Great job! Exactly what I needed. I am now using XCT Popups, Toasts and Snackbars instead of ACR.Dialogs. Keep doing these on the point videos...

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      Great Steve! Glad to be of assistance! And I see you even became a member, that is so awesome. Much appreciated, thank you!

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      Let me know if you miss anything in comparison to ACR dialogs, or better yet, report it straight on the repo so we can track it :)

  • @LobsterHarry
    @LobsterHarry 3 ปีที่แล้ว +1

    Thank you Geralt, that was what I am looking for !

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      Glad to be of service! Now I’m off, back to Rivia

  • @xavier2647
    @xavier2647 2 ปีที่แล้ว

    Excelent example, thank you Gerald for share it.

    • @jfversluis
      @jfversluis  2 ปีที่แล้ว

      My pleasure, glad it was helpful! Thanks for watching!

  • @tomreemer3137
    @tomreemer3137 3 ปีที่แล้ว

    Very, very nice Gerald! Very useful.

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      Glad you think so! Thanks :)

  • @saroshwadia
    @saroshwadia 3 ปีที่แล้ว +1

    Exactly what I was looking for. Super Thx

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      Glad to hear that!

  • @arneshchandra3361
    @arneshchandra3361 3 ปีที่แล้ว

    Absolutely great video. Keep em coming

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      Thanks, will do!

  • @manishbisen1909
    @manishbisen1909 3 ปีที่แล้ว

    Very Useful.Thanks !! Looking forward for more video's

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว +1

      Thank you Manish! They’re coming!

  • @andrewtruckle1695
    @andrewtruckle1695 3 ปีที่แล้ว

    Thanks for your video. At the moment I am not doing any coding on my Mac but I am still keeping an eye on the tutorials. Great!

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว +1

      Great to hear Andrew, thank you! What are you doing at the moment?

    • @andrewtruckle1695
      @andrewtruckle1695 3 ปีที่แล้ว

      @@jfversluis At the moment I am doing some updates to a Visual C++ MFC application. It does have a couple of helper tools, one in C# and one in VB for calendar sync to Google and Outlook. Sometimes I think of possibility of help app for mobile device but it is the concept of the source data which are binary files or XML on their PC. So I have not pursued the mobile aspect yet.

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      @@andrewtruckle1695 sounds like quite the challenge!

    • @andrewtruckle1695
      @andrewtruckle1695 3 ปีที่แล้ว

      @@jfversluis Yeah! Idea for tutorial if you don't have one. How can we connect to cloud services like DropBox etc? via an app so that the working with data files can be made a little more elegant than a user using a file selector window and navigation?

  • @cliffshivkar9948
    @cliffshivkar9948 2 ปีที่แล้ว

    Great info as always. Thank you! How to use Popups with Shell, especially the navigation & view model parts. Please do a video on that. Thanks in advance! And, keep up the good work

    • @jfversluis
      @jfversluis  2 ปีที่แล้ว

      Thank you Cliff! Unfortunately this is not supported for Shell. At least not compatible with the Shell navigation

  • @philippedoumet6073
    @philippedoumet6073 3 ปีที่แล้ว

    Best teacher!!

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว +1

      Thank you Philippe!

  • @galihseno
    @galihseno 2 ปีที่แล้ว

    hi Gerald, thanks for the video, its helped me a lot.
    I have a question, I have successfully open the pop up and pass the data, but I have a problem when I try to push another page (the camera page) from my popup page. Buut the pop up page wont disappear (usually I use await Shell.Current.Navigation.PopAsync(); before push the camera page). But in this case it doesn't work. Is there any way to do that?

  • @zarokoshin4090
    @zarokoshin4090 3 ปีที่แล้ว +1

    Great Video !
    Can you do this using MVVM or easier doing code behind ?
    Thanks!

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว +2

      More on popups with MVVM is coming!

  • @SayyadHasan
    @SayyadHasan 3 ปีที่แล้ว

    Awesome

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      Thank you Sayyad!

  • @anttipellinen
    @anttipellinen 3 ปีที่แล้ว

    Thanks Gerald! Very useful video again :)
    Are you able to tell is it possible to get similar kind of shadow/dimming on top of the popup's background in iOS like the Android seems to have automatically? At least it seems that in iOS the XCT popup does not add it automatically. Normal (non XCT) dialog does.

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว +1

      I think iOS does _some_ but it's not as clear as the Android one. It's not possible out of the box right now for sure, that is something that we would need to add than to give you control over that

    • @anttipellinen
      @anttipellinen 3 ปีที่แล้ว +1

      @@jfversluis On a second view might be you are right... Maybe iOS does add it, but the dimming is very very light compared to Android...

  • @acc6540
    @acc6540 3 ปีที่แล้ว +1

    Great like all that

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      Glad it was helpful :)

  • @tsumiotoshi
    @tsumiotoshi 3 ปีที่แล้ว

    Thanks you so much! It is easier to use then rg.plugin. Anyway, will you make a video for XF printing ? 😁😁

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว +1

      That's great to hear! I don't think so, simply because I don't have the hardware to test the printing :D
      Does this help? www.xamboy.com/2020/04/20/bluetooth-printing-in-xamarin-forms-using-shiny/

    • @tsumiotoshi
      @tsumiotoshi 3 ปีที่แล้ว

      @@jfversluis Thanks Gerald it is a great article for printing with thermal printer. But actually I need is for printing in handheld device with printer (SCANGLE SP01) . I got no clue on the Internet 😭.

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว +1

      Hm can’t help you with that I’m afraid :( sorry!

    • @tsumiotoshi
      @tsumiotoshi 3 ปีที่แล้ว

      @@jfversluis Thanks anyway Gerald! However I love your channel. ☺️

  • @mubasharfazal6093
    @mubasharfazal6093 2 ปีที่แล้ว +1

    hy, Gerald Versluis Excellent material of this video, But i'm still waiting for server side of map

    • @jfversluis
      @jfversluis  2 ปีที่แล้ว +1

      Thanks! I’m not sure what “server side of map” means though

    • @jfversluis
      @jfversluis  2 ปีที่แล้ว

      @@mubasharfazal6093 I have some videos on communicating with a server. I can't go make videos about every specific scenario unfortunately :)

    • @mubasharfazal6093
      @mubasharfazal6093 2 ปีที่แล้ว

      @@jfversluis ok! Thank you!

  • @billyjoseph3540
    @billyjoseph3540 2 ปีที่แล้ว

    Many thanks for this!
    Is there any way I could pass the size of the popup when calling it?
    I want to set the size of the popup according to the data passed.

    • @jfversluis
      @jfversluis  2 ปีที่แล้ว

      Not sure to be honest if it would respond to that! But try it out and let me know :D

    • @billyjoseph3540
      @billyjoseph3540 2 ปีที่แล้ว

      Actually, it does! :))

    • @jfversluis
      @jfversluis  2 ปีที่แล้ว

      That’s amazing! Thanks for letting me know!

  • @tillygreen9751
    @tillygreen9751 3 ปีที่แล้ว +1

    Can you please make a video about how to create a signup system that saves the typed data to firebase? Please thank you very much

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      I will add it to the list, but not sure if I will get to this one anytime soon. Do you have any links with more details on what you'd like to learn about?

  • @mohammedsadiq6953
    @mohammedsadiq6953 3 ปีที่แล้ว

    QUESTION: when using xct.popups in a content page and navgating to another... does the popup cause an issu as it going from one viewmodel to another

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      It shouldn’t, it’s just a separate page :)

  • @nicoarabogdan6090
    @nicoarabogdan6090 3 ปีที่แล้ว

    Is there a way to abstract the tables that i'm trying to access? Like to do something like this return db.Table().ToList() insted of doing return db.Table().ToList() and in another function return db.Table().ToList() ?

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      Err I think I'm missing some context here? :D

    • @nicoarabogdan6090
      @nicoarabogdan6090 3 ปีที่แล้ว

      @@jfversluis Yeah i expressed myself kinda vaguely. I got my answer on StackOverflow but it's tricky to wrap my head around *just straing anyway*. Here is the question tho stackoverflow.com/questions/68273081/abstract-database-access/68273797#68273797

  • @MrReallefauve
    @MrReallefauve 3 ปีที่แล้ว

    Hi, what you are doing
    is absolutely beautiful ... I would just like you to give us a tutorial on
    connecting with the facebook account, recovering account data (the friends
    list) so that we can send them notifications via messenger ... i searched too
    much on youtube, there are solutions but it really doesn't work ... thanks man

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      I'm not a big fan of Facebook so I don't think this will come anytime soon, sorry!

    • @MrReallefauve
      @MrReallefauve 3 ปีที่แล้ว

      @@jfversluis Yes, also I'm not a facebook fan, but the facts are there, this is the number 1 social platform, and I am developing an android application where I have to retrieve the user's friend list in order to send data message on messenger. Basically that's what my application does and I get stuck on it :)

  • @UzairAli001
    @UzairAli001 3 ปีที่แล้ว

    x:TypeArguments="dto:MiscellaneousItemDto" is not working for me it kept saying "Partial declarations of 'ExpenseMiscellaneousSelectionPage' must not specify different base classes". I've also tried after deleting bin and obj folder

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      I think I'm missing a bit of context here :)

    • @UzairAli001
      @UzairAli001 3 ปีที่แล้ว

      @@jfversluis I've open issue on Github github.com/xamarin/XamarinCommunityToolkit/issues/1542

  • @eddienoureddine7408
    @eddienoureddine7408 3 ปีที่แล้ว +2

    Does popup close on back button clicked on android ?

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      Good question! I would think it does

  • @_STF2023_the_camera.kinemaster
    @_STF2023_the_camera.kinemaster ปีที่แล้ว

    You have course from Basic to Advanced using Net Maui? Greetings from Brazil.

    • @jfversluis
      @jfversluis  ปีที่แล้ว

      This is more the getting started, but did you see this one? th-cam.com/video/mgW6xviirQk/w-d-xo.html

    • @_STF2023_the_camera.kinemaster
      @_STF2023_the_camera.kinemaster ปีที่แล้ว

      @@jfversluis Thanks so much.. I'll see it.!!!

  • @abrahamjohn9457
    @abrahamjohn9457 2 ปีที่แล้ว

    Is there a way to pass data from Rg Plugin Popup?
    Can you suggest which is better? Rg Plugin or Xamarin Community Toolkit popup!

    • @jfversluis
      @jfversluis  2 ปีที่แล้ว

      Both do more or less the same thing but different. Which one is better is mostly up to whichever one you prefer

  • @ehabghonem
    @ehabghonem 3 ปีที่แล้ว

    hi can you help me to export sum data to PDF file

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว +1

      Probably your best bet is to use SyncFusion components for that :)