Great video, Gerald! I've been working with these popups for a little while now. Two questions: - Any word on when popups will work with hot reload? - Is there any effort being put into not having to manually size popups? I'd love for them to just size to their content like any layout would.
The way you use the popup is code behind. I have try to use it with mvvm but I can't use the "Close()" . Can you explain how to close a popup in mvvm pattern?
Great video! Can you do a demo on creating a custom calendar control? The default one isn't that great, there's no way to select a range of days. Would also like to see you go into details on the sizing techniques you mentioned for the popup.
Great. Would you please create one video on how to deal with Popup's own ViewModel and Dependency Inject the services in it, rather than everything in code behind? Real apps uses ViewModel and DI concepts and this kills us 🙂 Thanks.
@@jfversluis hi I think what he meant was not to create the popup with new Popup() but with some kind of transient. I would very much like to know how to do so. Btw. is there a way to make the popup fly in with some animation? Thank you very much!
Great......i watch your videos and they all are really nice. I always take help from your videos. I have a question: Can we use TabbedPage inside ContentPage? Is there any video or can you make any video of it or is there any link regarding this topic ?
Great video, but a little buggy feature. XAML hot reloading seems to be not enabled for this control, and with my apps VS restart time of about 30 second it takes to long. But I found it to be copy-paste XAML to and from a normal page to get around this.
Thank you for the great video. How can I trigger the ShowPopupAsync in a ContentView? I'm trying to use the BindableProperty but somehow it doesn't work. Do you have an example for this? Thank you
Gerald I enjoy all of your videos thank you. Not sure where to ask this. Could you do a video on Connectivity to WIFI. Specifically to get SSID Name and Gateway IP address across all platforms. I use to be able to Select the WIFI connection I wanted directly in my App. Not sure how things changed between Xamarin and Maui. The Connectivity interface does not include the things I need.
Is it possible to make background transparent on popup, for example I'm having activity indicator, everything around is dimmed, but the square around the circle (loader) is white, I tried setting it up to be transparanent but it does nothing
Hi Gerald, thanks for the timely video. Just what I am working on. I am trying to set the size of the popup at runtime. I am using a binding in the header of the xaml. Size="{Binding size}". where size is determined by the format of the device. But it is not changing the size of the popup. Any ideas? For my current test size="411, 914"
Can you give more details on anchoring a popup to a point? I'm trying to put in a method to move a popup, and I think anchors are the way to go. I just have no idea how to set an anchor as a point.
actually a very helpful thing, dont wanna use the rg pop up any more. but two things I noticed: 1) dont work with hot reload, that needs to be fixed ;) and 2) how can I dismiss the popup from another page? Say I create a user and I wanna show im a popup with a loading icon on it. Now I dont want the user to dismiss the popup himself so I disable that. But I also need to know when the user has been created, so I need to be able to dismiss the popup from the page that originally loaded it
I think Hot Reload works, but you do need to close and reopen the popup to see the change. Looks like you figured out the rest in the other comments :)
Thank you! Although this is Xamarin the concept should be the same: Pass Data From and To Popups with Xamarin Community Toolkit ua-cam.com/video/d2SEOj0o5j4/v-deo.html
Great video as alsways Gerald! I have app running in fullscreen/immersive mode on Android. When a popup is displayed, the android navigation buttons at the bottom is displayed. Closing the popup hides the navigation buttons again. Is this a bug or feature in the popup implementation? (Testing the same with a Shell based app does not hide the navigation buttons after closing a popup)
Hello. Is there any way that we can pass value to a progress bar inside the pop up. Based on the background task download happening in the viewmodel. Basically pass the value after the pop up is loaded
Thanks for the video! Unfortunately it seems that you are not able to display a popup from a view model which is a bit of a draw back! The app crashes miserably!
Hi sir Gerald I'm having a constant error like MAUI error The Parent must be of type Microsoft.Maui.Handlers.PageHandler every time I try to call .ShowPopup in a view model, any clues?
Is it possible to open a popup inside another popup? I tried it and i got a error: Java.Lang.IllegalStateException Message=The specified child already has a parent. You must call removeView() on the child's parent first.
Hey Gerald! Since this Popup is not MVVM aware, how can you use it to display the loader from the view model? If somehow you can manage to show the loader from the code behind (I guess using the PropertyChanged event handler of the view model), how would you close it when the API call is completed? To me, this control is useless since it doesn't offer flexibility. Unless Microsoft doesn't offer a close functionality from outside Popup code behind, this makes very little sense.
Arguably a popup is very much a thing that belongs to a view and thus can safely be triggered with code inside of your view. However, you can easily wrap the whole navigation into a service that can be used with MVVM if that's what you want. So I definitely don't think this is useless.
Anyone got this error? Cannot create instance of type 'CommunityToolkit.Maui.Core.Views.MauiPopup': no Java peer type found. I got a simple popup with a color picker and i call it with ShowPopupAsync from a double tap event. In debug build works fine, but in release build give this error...
@@ebaysher572 not sure if I fully understand what you mean. But anything you want to show outside of your application you will have to use push notifications
Can i show a popup like a view? I guess what i am saying is i want the popup functionality but i want it to look just like any other view because i am not using it as a dialogue but to show another view. Thanks
Great video, Gerald! I've been working with these popups for a little while now. Two questions:
- Any word on when popups will work with hot reload?
- Is there any effort being put into not having to manually size popups? I'd love for them to just size to their content like any layout would.
The way you use the popup is code behind. I have try to use it with mvvm but I can't use the "Close()" . Can you explain how to close a popup in mvvm pattern?
Great video! Can you do a demo on creating a custom calendar control? The default one isn't that great, there's no way to select a range of days.
Would also like to see you go into details on the sizing techniques you mentioned for the popup.
Check out this one for the calendar: ua-cam.com/video/aw7b_Xt1fng/v-deo.html it also has .NET MAUI support
Great. Would you please create one video on how to deal with Popup's own ViewModel and Dependency Inject the services in it, rather than everything in code behind? Real apps uses ViewModel and DI concepts and this kills us 🙂 Thanks.
The popup is just a page, so whatever you do for any other page, should also work for a popup!
@@jfversluis hi I think what he meant was not to create the popup with new Popup() but with some kind of transient. I would very much like to know how to do so. Btw. is there a way to make the popup fly in with some animation? Thank you very much!
Great......i watch your videos and they all are really nice. I always take help from your videos.
I have a question: Can we use TabbedPage inside ContentPage? Is there any video or can you make any video of it or is there any link regarding this topic ?
Great video, but a little buggy feature. XAML hot reloading seems to be not enabled for this control, and with my apps VS restart time of about 30 second it takes to long. But I found it to be copy-paste XAML to and from a normal page to get around this.
I think hot reload works, you just need to open the popup again for the changes to show
Thank you for the great video. How can I trigger the ShowPopupAsync in a ContentView? I'm trying to use the BindableProperty but somehow it doesn't work. Do you have an example for this? Thank you
Gerald I enjoy all of your videos thank you. Not sure where to ask this. Could you do a video on Connectivity to WIFI. Specifically to get SSID Name and Gateway IP address across all platforms. I use to be able to Select the WIFI connection I wanted directly in my App. Not sure how things changed between Xamarin and Maui. The Connectivity interface does not include the things I need.
Hi @Gerald Versluis very helpful and handy video really needed that one. Can you please show or mention that how to open it from the native code?
What is the correct approach to get result from popup according to MVVM?
Probably wrap it in a service and inject that :)
How do I create a popup that automatically sizes based on its children instead of using Height and Width.
Im having this issue as well. I think it works fine on Android but does not resize to the contents on iOS.
Another great video & liked it! Thanks!
Thank you! Cheers!
Is it possible to make background transparent on popup, for example I'm having activity indicator, everything around is dimmed, but the square around the circle (loader) is white, I tried setting it up to be transparanent but it does nothing
Hi Gerald, thanks for the timely video. Just what I am working on. I am trying to set the size of the popup at runtime. I am using a binding in the header of the xaml. Size="{Binding size}". where size is determined by the format of the device. But it is not changing the size of the popup. Any ideas? For my current test size="411, 914"
Great. Thanks for the video. Do you know if we could apply some animations to the popup when appears/disappears (like we have in Rg.Plugin)?
Can you give more details on anchoring a popup to a point? I'm trying to put in a method to move a popup, and I think anchors are the way to go. I just have no idea how to set an anchor as a point.
actually a very helpful thing, dont wanna use the rg pop up any more. but two things I noticed: 1) dont work with hot reload, that needs to be fixed ;) and 2) how can I dismiss the popup from another page? Say I create a user and I wanna show im a popup with a loading icon on it. Now I dont want the user to dismiss the popup himself so I disable that. But I also need to know when the user has been created, so I need to be able to dismiss the popup from the page that originally loaded it
oh, nvermind. you can just literally go pop.close() on the instance of the variable :)
i did however notice, that the popup doesnt seem to work with displayAlert() function
I think Hot Reload works, but you do need to close and reopen the popup to see the change.
Looks like you figured out the rest in the other comments :)
Thanks for the video. Is there a way to pass parameters to the popup? and call a Converter?
Hello Gerald, thanks for a greate guiding again. A question: how do you return values from popups?
Thank you!
Although this is Xamarin the concept should be the same: Pass Data From and To Popups with Xamarin Community Toolkit
ua-cam.com/video/d2SEOj0o5j4/v-deo.html
Great video as alsways Gerald!
I have app running in fullscreen/immersive mode on Android.
When a popup is displayed, the android navigation buttons at the bottom is displayed.
Closing the popup hides the navigation buttons again.
Is this a bug or feature in the popup implementation? (Testing the same with a Shell based app does not hide the navigation buttons after closing a popup)
A todo dar Gerald, saludos desde la capital nacional del calzado. 😁
Greetings back my friend! Thanks so much for your support!
How could we use the popups to ask the user a question or to enter sime details and then get the replies back to the calling program?
Thank you!
Hello. Is there any way that we can pass value to a progress bar inside the pop up. Based on the background task download happening in the viewmodel. Basically pass the value after the pop up is loaded
Thanks for the video! Unfortunately it seems that you are not able to display a popup from a view model which is a bit of a draw back! The app crashes miserably!
I think we did some fixes for that. If there is still work to do, make sure to open an issue on the repository!
@@jfversluis Yup see that now, thank you for responding!
Hi sir Gerald I'm having a constant error like MAUI error The Parent must be of type Microsoft.Maui.Handlers.PageHandler every time I try to call .ShowPopup in a view model, any clues?
Awesome video.
Thank you!
How can I recive values from a viewModel?, there is any animations?, what about close from viewmodel
Nice video preview
Thanks Igor!
It's not working :/ ... the xaml doesn't recognize the community toolkit namespace. Can you help?
Do you recommend using this library or using the Community one?
Both have their own ways I suggest trying both and see what sticks for you
Is it possible to open a popup inside another popup? I tried it and i got a error: Java.Lang.IllegalStateException
Message=The specified child already has a parent. You must call removeView() on the child's parent first.
Hey Gerald! Since this Popup is not MVVM aware, how can you use it to display the loader from the view model? If somehow you can manage to show the loader from the code behind (I guess using the PropertyChanged event handler of the view model), how would you close it when the API call is completed? To me, this control is useless since it doesn't offer flexibility. Unless Microsoft doesn't offer a close functionality from outside Popup code behind, this makes very little sense.
Arguably a popup is very much a thing that belongs to a view and thus can safely be triggered with code inside of your view. However, you can easily wrap the whole navigation into a service that can be used with MVVM if that's what you want. So I definitely don't think this is useless.
@@jfversluis I appreciate your reply. Can you create a video that shows Popup in action showing the loader controlled from View Model? Thanks again
I’ll think about it. In the meantime, check the Toolkit sample app, I think there is a sample of it in there.
@@jfversluis I'll check it again.
@@jfversluis I couldn't find any example :(
Anyone got this error?
Cannot create instance of type 'CommunityToolkit.Maui.Core.Views.MauiPopup': no Java peer type found.
I got a simple popup with a color picker and i call it with ShowPopupAsync from a double tap event.
In debug build works fine, but in release build give this error...
The videos are great. Is it possible to create tabbed pages inside the popup?
I guess that should be possible! Not sure about the user experience though 😅
where did you get your shirt ?
Hey thanks! You can find it here: microsoftmerchandise.com
Do you know if this MCT popups is equivalent in features to Mopups? Haven't used either yet, but it would seem like Mopups is a better option..
These two plugins do kind of the same but in a different way. If Mopups works better for you, please use that!
How could we create an actionsheet like ios where the popup is that buttom of the screen and not the center? Otherwise great video as always
You mean more like the action sheet that is built into .NET MAUI?
Now how cool is that didn't know it was built-in to .NET MAUI 😀😀
Do you know how to avoid the popup disappearing when the main window resizes? This happens with Windows platform build.
Nope, sorry! You might want to open an issue on the repo for this one!
How can we show the popup in ContentView
When can we see the CameraView in Community Toolkit for MAUI
We don't have any date, but it's being worked on
How do you do this in a ViewModel?
Wrap it in a navigation service
You can directly call the Application context of MainPage just like this one:
Application.Current.MainPage.ShowPopup(new PopupPage());
Hello.. Can it be used in razor pages? in a MAUI Blazor app?
I guess technically you could. You would create a .NET MAUI page and add a BlazorWebView to that
@@jfversluis okay Bedankt!
Any way to show the popup or some toast out of the application?
You can do that with push notifications
@@jfversluis but what if I want something like popup to display, for oncall event?
@@ebaysher572 not sure if I fully understand what you mean. But anything you want to show outside of your application you will have to use push notifications
Can i show a popup like a view? I guess what i am saying is i want the popup functionality but i want it to look just like any other view because i am not using it as a dialogue but to show another view. Thanks
Then why not push just another page, maybe as a modal?
@@jfversluis Thank You So Much !!!
How can the popup border be rounded?
You can see an example of that here: github.com/CommunityToolkit/Maui/pull/1463
how to fill the size with screen size?
Get the current screen size with DeviceDisplay: learn.microsoft.com/dotnet/maui/platform-integration/device/display
6:54 What's a nice color... /*can't think of any nice web color*/ Let's just make it white 😂😂😂
I just love a functional design 😬
@Gerald item not available on Github at the time of writing. Please address.
Whoops, forgot to set it to public, thanks!
@@jfversluis smile now available
Can Popups have ViewModels too?
For Bindings, CollectionViews etc?
They’re just pages so yes
@@jfversluis Thank you very much, was very quick :D
If mct:Popup doesn't work for you, try toolkit:Popup
It all depends on what you put in the xmlns in the root of your page!
We need a loading like Acr.UserDialogs loading on net MAUI