Closed myokeeh closed 2 months ago
This was related to a question I already asked previously: https://github.com/microsoft/TemplateStudio/discussions/4585#discussioncomment-3322099
Changing Transient to Singleton made everything work as I expected.
Describe the bug
I just created a Menu Bar WinUI project. All Nuget packages updated.
MainPage.xaml
MainViewModel.cs:
To Reproduce
Additional context
I'm coming from UWP and used Windows Template Studio. I didn't run into issues like this.
I tried adding/setting datacontext or adding similar xaml code that referenced the viewmodel, but can't get binding to work.
Binding works on load, but subsequent attempts to set the Properties that are bound don't work.
Applies to the following platforms:
About your setup