Re: my now removed question -- I'm hitting an issue with the ItemSelectedEventArgsConverter. Builds fine. Deploy fails with error "XFC0000: Cannot resolve type "xct:ItemSelectedEventArgsConverter" In case it helps anyone who runs into this on VS2022 and Windows (caveat only because I didn't try this on a mac). Close VS, manually delete the obj and bin folders. Then (for good measure), stop and restart the Android emulator. Load the solution back up and that should resolve this issue. I do want to note that I ran into this on a 100% new solution while I was troubleshooting, so it's possible the actual solution was just bouncing the emulator.
How do we do this for the 'Unfocused" event for an entry in .NET Maui? I do not see any "UnFocusedEventargsConverter" in the .NET MAUI community toolkit?
As of the time of this post and Xamarin Community Toolkit 1.3.1, the SelectedCoffee = null problem still occurs. Frankly I'm a little confused WHY it's so important to set it to null. Did I miss something in an earlier video, I've watched them all.
Hey James, I may need your advice, here is my question : I'm currently working on implementing the BackButtonPressed Event and I want to do it the MVVM way, my issue is that when I'm trying to use the behavior eventToCommand and a command by definition returns nothing while my BackButtonPressed return a boolean. I need the command to return true so that my app doesn't close. Hope you can guide me thank you :)
Hi James many thanks for these videos.. these are incredibly helpful. I have been struggling now with one item and was wondering if you can maybe do one of your magic tutorial videos. Effectively I would like to know how I can use a data item which is generated in my main page viewmodel upon a selection, in a SecondPage viewmodel script, such that I can use that transferred data to bind in a SecondPage view. Many thanks in advance. Sorry if this is not really clear, i am really at the start of learning xamarin.
I am not sure whether this is the best way but I defined the variable as public static ToBeSentData in viewmodel1 and in vewmodel2 I referred to it as public ReceivedData = viewmodel1.ToBeSentData which seemed to work. But if you can please direct me to any generic resources that you find useful that will be much appreciated. Thanks.
Hello James Your videos are awesome. one doubt i have for the above video is that will this technique still work if i change the ui as this seems to be ui specific mvvm. thanks in advance.
Hey James. I recently found your channel and I love this series. I have a question regarding ListView/CollectionView: is there a particular reason for undoing the selection after it happens? Is it purely visual, or does it serve a different purpose? Is it like a best practice? Are there any downsides to just keeping the selected item selected?
How is possible to uncolor selectedItem? I am agree with "SelectedCoffee=null", but does not really atractive the orange selected at the background, wich never desapears
One way I do it is have a selected property and change the background color of the cell based on it. Or add an effect shimmer (syncfusion) to it and unselect it on tap
So, the Xamarin Community Toolkit has lots of goodies in there, I also have my own library called MVVM Helpers -> ua-cam.com/video/y8ZqEOLDeo8/v-deo.html The mvvm toolkit will also work great with Xamarin apps.
Thanks for a great video like always. Is there any behaviour so i can get a command called on my viewmodel when it appears? It would be nice to have an async entry point on my viewmodel when my page is displayed. Often at that point we fetch some data
only you James can answer me if I move to xamarin5 is it ok with old android ? or what is the minimum android can xamarin5 supported? or how can I release to kit kat android 4.4 with xamarin5? thank you very very much James you are really friend of all developers in all world thank you again
Xamarin.Forms 5 still support 4.4, you are good to go. I would only recommend if you are targeting a specific device. If you are releasing to google play just a normal app you should really think of targeting something like 6.0+
@@JamesMontemagno One more thing if you still there when I debug to kit kat 4.4 its ok but when I release its crashed .. dose not work am I forget something? I am new in xamarin thank you James .. Thank you soooooooooooooooo much
Xamarin.Forms and .NET MAUI use native controls and you can style how you want. So it all depends on how you are designing your apps at the end of the day. Plenty of apps built in Swift that look nothing like standard Apple apps.
@@JamesMontemagno thank you. Do you have any videos on creating an app for iPad? I know you can run an iPhone app on an iPad but those stink. I’d like to byiild an app that runs properly on iPhone and iPad.
You would have to register some sort of exit app event however you really shouldn't do that at all. I think only available on Android to exit and app and I don't think on iOS.
After months on end, I am back here again
This is so cool James. The best. Keep the best work!!!
It would be cool to have a playlist of all the episodes of this coffee app. Thank you!!
It exists! ua-cam.com/play/PLwOF5UVsZWUiHY1CkRVjYJ6dm0iCvAlfw.html
Re: my now removed question -- I'm hitting an issue with the ItemSelectedEventArgsConverter. Builds fine. Deploy fails with error "XFC0000: Cannot resolve type "xct:ItemSelectedEventArgsConverter"
In case it helps anyone who runs into this on VS2022 and Windows (caveat only because I didn't try this on a mac). Close VS, manually delete the obj and bin folders. Then (for good measure), stop and restart the Android emulator.
Load the solution back up and that should resolve this issue. I do want to note that I ran into this on a 100% new solution while I was troubleshooting, so it's possible the actual solution was just bouncing the emulator.
amazing vid james!
How do we do this for the 'Unfocused" event for an entry in .NET Maui? I do not see any "UnFocusedEventargsConverter" in the .NET MAUI community toolkit?
James, another great video thanx for your presentation. Any chance these have been pushed to Git?
Yes you did, the changes are in Git, TVM.
As of the time of this post and Xamarin Community Toolkit 1.3.1, the SelectedCoffee = null problem still occurs.
Frankly I'm a little confused WHY it's so important to set it to null.
Did I miss something in an earlier video, I've watched them all.
You set it to null to deselect it
@@JamesMontemagno - Yes but why is deselecting it so important? Is there an issue with leaving a collection item selected?
@@belmiris1371 Ah so usually if you don't deselect then the user can't press it again. So deselecting will make sure the user can click on it again.
@@JamesMontemagno okay, that makes sense. Thanks!
Hey James, I may need your advice, here is my question : I'm currently working on implementing the BackButtonPressed Event and I want to do it the MVVM way, my issue is that when I'm trying to use the behavior eventToCommand and a command by definition returns nothing while my BackButtonPressed return a boolean. I need the command to return true so that my app doesn't close.
Hope you can guide me thank you :)
Hi James many thanks for these videos.. these are incredibly helpful. I have been struggling now with one item and was wondering if you can maybe do one of your magic tutorial videos. Effectively I would like to know how I can use a data item which is generated in my main page viewmodel upon a selection, in a SecondPage viewmodel script, such that I can use that transferred data to bind in a SecondPage view. Many thanks in advance. Sorry if this is not really clear, i am really at the start of learning xamarin.
I am not sure whether this is the best way but I defined the variable as public static ToBeSentData in viewmodel1 and in vewmodel2 I referred to it as public ReceivedData = viewmodel1.ToBeSentData which seemed to work. But if you can please direct me to any generic resources that you find useful that will be much appreciated. Thanks.
Hello James
Your videos are awesome.
one doubt i have for the above video is that will this technique still work if i change the ui as this seems to be ui specific mvvm. thanks in advance.
I wouldn't see why there would be an issue, Commands can be bound to just about anything with the EventToCommand.
@@JamesMontemagno Thanks for the reply.
Will this work just the same on maui as demonstrated?
Yup, but with the .net Maui community toolkit
@@JamesMontemagno thanks James. Keep up the good work!
So since this is dealing with coffee selections, isn't this just a Java app?
Is this unavailable to CollectionView? I'm crashing whenever I try to use this.
excellent tutorial series.
10:25 - 1 year later and this still hasn't been fixed XD
Is there a way to do this for scrolling?? To detect that the user scrolled in mvvm
Hey James. I recently found your channel and I love this series.
I have a question regarding ListView/CollectionView: is there a particular reason for undoing the selection after it happens? Is it purely visual, or does it serve a different purpose? Is it like a best practice? Are there any downsides to just keeping the selected item selected?
If you don't deselect it then the user can't select it again is the main issue. So it depends on your app and what you are going for.
How is possible to uncolor selectedItem?
I am agree with "SelectedCoffee=null", but does not really atractive the orange selected at the background, wich never desapears
One way I do it is have a selected property and change the background color of the cell based on it. Or add an effect shimmer (syncfusion) to it and unselect it on tap
@@JamesMontemagno thank you, solved worked with a trigger on checkbox at element list:
Nice!
Is there a way to do something equivalent with the MVVM Toolkit (from the Windows Community Toolkit) ?
So, the Xamarin Community Toolkit has lots of goodies in there, I also have my own library called MVVM Helpers -> ua-cam.com/video/y8ZqEOLDeo8/v-deo.html The mvvm toolkit will also work great with Xamarin apps.
Thanks for a great video like always. Is there any behaviour so i can get a command called on my viewmodel when it appears? It would be nice to have an async entry point on my viewmodel when my page is displayed. Often at that point we fetch some data
Cool James! Is it possible to use the EventArgsConverter with a CollectionView Behavior using the SelectionChanged Event ?
Should be able to! Else it takes any converter so should be able to create your own really easily.
only you James can answer me
if I move to xamarin5 is it ok with old android ?
or
what is the minimum android can xamarin5 supported?
or
how can I release to kit kat android 4.4 with xamarin5?
thank you very very much James
you are really friend of all developers in all world
thank you again
Xamarin.Forms 5 still support 4.4, you are good to go. I would only recommend if you are targeting a specific device. If you are releasing to google play just a normal app you should really think of targeting something like 6.0+
@@JamesMontemagno Thank you so much ..
@@JamesMontemagno One more thing if you still there
when I debug to kit kat 4.4 its ok
but when I release its crashed .. dose not work
am I forget something?
I am new in xamarin
thank you James .. Thank you soooooooooooooooo much
Anyone getting an error with the androide OS on Visual studio Community?
For technical support -> docs.microsoft.com/en-us/answers/products/dotnet
Thanks fixed it, it was the file names where to long.
Thank you so much Sir
I know this is more philosophical, but are apps built with xamarin forms perceived to operate the same as those built directly in Xcode?
Xamarin.Forms and .NET MAUI use native controls and you can style how you want. So it all depends on how you are designing your apps at the end of the day. Plenty of apps built in Swift that look nothing like standard Apple apps.
@@JamesMontemagno thank you. Do you have any videos on creating an app for iPad? I know you can run an iPhone app on an iPad but those stink. I’d like to byiild an app that runs properly on iPhone and iPad.
xamarin forms Shell how to exit app from flyout logout Item ?
You would have to register some sort of exit app event however you really shouldn't do that at all. I think only available on Android to exit and app and I don't think on iOS.
James Number One!
This video violates Inversion Of Control. You are "newing up" lots of concrete Commands and that is a no-no. Not good advice.