Skip to content

HamburgerMenuApp.V4 view from MenuItem will be constructed twice #16

Description

@ali50m

After adding the following code to HomeView.Xaml.cs in HamburgerMenuApp.Core and make HamburgerMenuApp.V4 output debug message to console, then I found the "HomeView ctor..." message will pop up twice even I just click the Home menuItem once.
I can`t see this issue in other V1~V3 samples, seems like the menuItem views is singleton in these projects.

=================================================

public HomeView()
{
InitializeComponent();
Console.WriteLine($@"{GetType().Name} ctor...");
}

~HomeView() => Console.WriteLine($@"{GetType().Name} dtor...");

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions