Im trying to upgrade an application that i made a few years ago. The application is a wrapper of opengl made with win32, but now i want to add ui to that, because i want to make a sort of demo. I’ve been using xaml islands to create the controls, and i got a lot of success making it but i have a problem with buttons, because when i use the function Click the button doesn’t do nothing i make some research and i see that the best way is using the function Command instead. But i wanna know how to use it because i search an example with no luck, this is the repo that i had in github if you want to see the code if you want https://github.com/dabo96/WinUI_v3.1.git.
i see this example https://github.com/microsoft/cppwinrt/issues/1066, but it doesn’t work for me since this is for c++/winrt and i working with c++ and win32.
Daniel Borja is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.