Hello,
Welcome to Microsoft Q&A!
You might need to create a class for the user object and make sure that you've decalred the property in the mainWindow's idl.
For more information, lease take a look at this document: XAML controls; bind to a C++/WinRT property It contains complete steps about how to implement a xaml binding. This is a UWP document but this also works for winui3 c++/winrt project.
Thank you.
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.