maui-samples icon indicating copy to clipboard operation
maui-samples copied to clipboard

In Control Gallery, Windows Host Stops Navigating After One Click / Back Sequence

Open dplattipswich opened this issue 1 year ago • 4 comments

On Control Gallery solution, files dated 11/29/2023, as downloaded on 2/5/2024, unmodified. Built in Visual Studio 2022, version 17.8.0, on Windows 10.

I observed this behavior on my PC running Windows 10. The problem is shown in the attached video. Program launches on Windows from Visual Studio. I click the ActivityIndicator control, which correctly displays (3 seconds). I then click Back, and it goes back to the main menu (9 seconds). However, after returning to that main menu, it doesn't respond to a mouse click on any control (rest of video). I can only show one control working per launch, after which I need to restart the app.

I wondered if the NavigationPage was somehow messed up. I put in handlers in App.Xaml.cs for that page's Popped and Pushed events to see if they were firing. They fired the first time, when the control was successfully shown. But they didn't fire again, no matter which ones or how many I clicked on. See the screen shot with only one event being fired. For some reason, the navigation process just isn't happening.

The Control Gallery solution performed this operation correctly on Google Pixel 4 running Android 13. I'm attaching another screen shot to show those Popped and Pushed events being fired. It also works correctly on my iOS devices (although see the adjacent issue for a different problem with iOS).

Any ideas as to fix or workaround? Tx

https://github.com/dotnet/maui-samples/assets/24593474/537a23b0-1f05-4095-97f5-c4aecf1ee356

BadWindowsControlGalleryTraces GoodAndroidControlGalleryTraces

dplattipswich avatar Feb 09 '24 16:02 dplattipswich

The same here

AlexandreCH avatar Feb 19 '24 11:02 AlexandreCH

idem

alevega76 avatar Feb 24 '24 00:02 alevega76

compilen con la version net 7 y funciona...evidentemente hay lios con .net 8

alevega76 avatar Feb 24 '24 00:02 alevega76

This looks like one that falls under the category of product issues as described here. If this is something that you experience in your own project, please make sure there is an issue for it on the .NET MAUI repository so that it is properly tracked and can be fixed.

jfversluis avatar Feb 26 '24 13:02 jfversluis