Relative Content

Tag Archive for xamlmaui

MAUI ImageButton click event works in Android app but not in Windows app

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.

MAUI ImageButton click event works in Android app but not in Windows app

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.

MAUI ImageButton click event works in Android app but not in Windows app

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.

Why .NET MAUI Grid is not extending vertically

I’m trying to add a Welcome Screen for my App, it consists out of a title label, 2 buttons lined in stack vertically and a frame which would hold recently edited files. Elements are added to grid but for some reason Grid takes only about 50% of available vertical space.

Why .NET MAUI Grid is not extending vertically

I’m trying to add a Welcome Screen for my App, it consists out of a title label, 2 buttons lined in stack vertically and a frame which would hold recently edited files. Elements are added to grid but for some reason Grid takes only about 50% of available vertical space.

Unable to get XAML VisualState code to work

I’m learning MAUI and XAML on MS Learn. Unable to get sample code to work. When I click the button and hold down the mouse button, the scale goes from 1.0 to 0.8. When I release the mouse button the scale should return to 1.0 but doesn’t. Below is the XAML code and the C# code from the code-behind file: