Relative Content

Tag Archive for c++xamlwinapiwin32gui

how to set the command of a button in a xaml island in a win32 app?

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.