dotnet / dotnet/maui-samples

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

Open
#430 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
C#
Stars
3.7k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/dotnet/maui-samples/assets/24593474/9e51d3b6-503a-4613-8234-a12f92fc8ddc)
![GoodAndroidControlGalleryTraces](https://github.com/dotnet/maui-samples/assets/24593474/1a0ad364-998b-4aa8-a653-562b972a15d1)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.