One frame flyout bug on a tab bar menu

AdamHoleek-1930 0 Reputation points
2024-07-08T12:35:43.68+00:00

While bulding my simple app I´ve notice a little bug (dont know if its a feature or not) showing a flyout menu on few frames in only tab bar menu app in case of user decided to do back one step

https://youtube.com/shorts/XcPQN9AkTFY?feature=share

Here is my code I used in MainViewModel:

using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;

namespace MauiApp1.ViewModel;
public partial class MainViewModel : ObservableObject
{
    [RelayCommand]
    async Task AddChat()
    {
        await Shell.Current.GoToAsync(nameof(NewChatPage));
    }
}


AppShell.xaml.cs:


namespace MauiApp1
{
    public partial class AppShell : Shell
    {
        public AppShell()
        {
            InitializeComponent();
            Routing.RegisterRoute(nameof(NewChatPage), typeof(NewChatPage));
        }
    }
}

MauiProgram.cs:

namespace MauiApp1.Other
{
    public static class MauiProgram
    {
        public static MauiApp CreateMauiApp()
        {
            var builder = MauiApp.CreateBuilder();
            builder
                .UseMauiApp<App>()
                .ConfigureFonts(fonts =>
                {
                    fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
                    fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
                    fonts.AddFont("Helvetica-Bold.ttf", "Helveticabold");
                });

#if DEBUG
            builder.Logging.AddDebug();
#endif
            builder.Services.AddSingleton<MainPage>();
            builder.Services.AddSingleton<MainViewModel>();

            builder.Services.AddSingleton<NewChatPage>();
            builder.Services.AddSingleton<NewChatViewModel>();
            return builder.Build();
        }
    }
}


I had tried to search for this problem but I didn´t find anything

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,841 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,487 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,913 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 42,431 Reputation points Microsoft Vendor
    2024-07-09T03:07:55.8633333+00:00

    Hello,

    Thanks for your feedback.

    Q&A is not a bug reporting or tracking system. I found that you have reported it in the Maui github repository at One frame flyout bug on a tab bar menu #23483 . We will clear details to be able to reproduce and troubleshoot the problem. When you post it, please include version numbers, exact repro steps, and the difference between the expected behaviour and actual behaviour.

    Please continue to follow this thread to avoid missing answers from the development team.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.