admin管理员组

文章数量:1123036

I am developing a card game for Windows and Android using MAUI. The main page contains the card table. Clicking on one of your cards in your hand moves it to the discard area. Clicking on the card in the discard area moves it back to your hand. These actions work as expected in the android app. In the windows app, only clicking on the card in your hand works as expected. Clicking on the card in the discard area does not execute the code in the click event.

I am thinking it might have something to do with the xaml for page. The xaml includes grids and grids within grids.

I have created a sample app to demonstrate the problem. The app uses the card table xaml. I have removed all of the controls except 2 image buttons. Clicking on the image button moves the card to the other image button and then clicking the card moves it back to the original image button. The sample code is located here

本文标签: xamlMAUI ImageButton click event works in Android app but not in Windows appStack Overflow