-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] Shell Navigation.PushAsync ignored on UWP platform #8498
Comments
Guys, Curious if this is going to be fixed in the near future since it a basic need in the application, without the ability to navigate its hard to test more of the basic system I notice it has a tag of e/5 but my other bug has an e/4. this bug is way more important than the other one by far |
8498_Repro.zip |
Not sure why this got closed, sorry |
@curtisconner The |
Hello I am newbie to Xamarin.Forms. I think the shell is a great idea. |
Yes that’s the bug. In fact all navigation is broke other than shell or tab navigation at this point.
…Sent from my iPad
On Dec 7, 2019, at 7:35 PM, DiagProf ***@***.***> wrote:
Hello I am newbie to Xamarin.Forms. I think the shell is a great idea.
That's why I wanted to test it with UWP.
I checked out the following:
https://github.com/xamarin/xamarin-forms-samples/tree/master/UserInterface/Xaminals
and add UWP support, of course with experimental flag.
I still have to copy the pictures into UWP Project and then it looked like it works.
But I can’t navigate to a detail page, await Shell.Current.GoToAsync… does not seem to work under UWP.
In search of a solution, I ended up here. Now I do not know if my problem is the same. I am still too newbie.
Could one possibly tell me if I'm at the right bug?
Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Guys, I could use your help. I have modified the source from the 4.3 branch to get the basic navigation to work, it will now load a new page and show the back arrow. But when I try to implement the back button I get failure. Its seems that there is a need to create a new page not just use the frame.goback method. Not sure what's going on here. My source is at https://github.com/curtisconner/Xamarin.Forms-UWP-Shell-Navigation and the changes can be found in the region commented under Navigation. all changes are in the Shell directory. Any help would be great |
OK I guess no one is using this feature so I might as well just ignore it and use another platform. thanks |
I waiting two month for this fix :) |
So am I ;) |
Yes it is very very important. You do a great job (really) but I think you underestimate UWP (tablet and especially desktop). With the arrival of Shells, UWP had a bad cold and we had to postpone a major version (we didn't think it would take as long to finish the job). So thank you for healing the UWP. Have a nice year. |
I have the same problem. Navigation.PushAsync() does not work for the UWP project. Using Shell and updated to latest Xamarin Forms 4.4.0.991640 |
We're on it, friends. Sorry about the delay. |
Thank very much. My team and I really appreciate. Have a nice weekend. |
Do you have an ETA? |
I am using a UWP project and Xamarin.Forms (4.7.0.968). Navigation.PushAsync works first time but then freezes after that? Is this the same issue? |
No ETA as of yet The thing about this issue is that it's not really a bug. None of the navigation for Shell UWP is really built, so it's not just fixing an if statement. It's wiring up the back button, fixing the title, filling in all the other nav apis, switching flyout items maintains stack, etc.. I'm close to having the features of "push" done as the first functional step and then I'll create additional issues for the other parts that people can follow. |
So are you saying that you cannot use Xamarin.Forms with a UWP project?? |
No, he's saying that this particular feature of Forms is not yet fully implemented for UWP. Using Forms with UWP will work fine if you are not using this particular feature. |
So if I understand correctly: you can use Xamarin Forms with UWP, the new feature, Shell is not yet fully implemented for UWP. So there are some options:
Repeatedly asking are we there yet will not speed up the process, just make this ticket longer. |
@g4mb10r No, there isn't. Would you mind opening one? Thanks!! |
closed by #11410 |
After update to "Xamarin.Forms" Version="4.8.0.1269" Getting other exception on line 71: Result: @samhouts new issue? |
@filipoff2 yea if you can log a new issue so that we make sure it's not missed that would be helpful!! |
Description
Using the solution created by VS2019 for shell and then adding a UWP project to it does not work correctly, the call to Navigation.PushAsync to bring up the detail form is ignored but the same project works correctly with Android and iOS
Steps to Reproduce
Create a new solution with VS2019, select shell project for iOS and Android.
Add in the UWP project, update the UWP code for Xamarin as documented.
https://stackoverflow.com/questions/41192203/how-can-i-add-a-uwp-target-to-an-existing-xamarin-forms-project
Upgrade the Nuget for the project to use the 4.3 release of Xamarin.Forms
Add the line global::Xamarin.Forms.Forms.SetFlags("Shell_UWP_Experimental"); prior to calling Xamarin.Forms.Init
Compile and run in UWP mode
When the app runs select the "First item", this should then display a new page with the details of the first item. On UWP it does not, it stays on the same page. it seems that the line
await Navigation.PushAsync(new ItemDetailPage(new ItemDetailViewModel(item)));
is being ignored in UWP
Expected Behavior
I expected that when I selected the "First item" it would bring up the details page for this first item.
The text was updated successfully, but these errors were encountered: