Relative Content

Tag Archive for c#maui

Changing ContentView’s source programatically causes memory leaks

In my MAUI mobile app I have a page with a ContentView. I need to be able to swap the content out many times. But each view I’m using isn’t being garbage collected after being shown and then replaced by another view, so the app eventually fails due to memory issues.

Issue with Gyroscope in .NET MAUI

i’m developing a game based on Galaga. The structure of the game is basically the same but the space ships don’t shoot, it is based on collisions. The problem that i have is when i download the APK in my phone and use the gyroscope my space ship only moves to the right and surpasses the screen but when i tried to move it to the left the space ship get stuck in the middle of the screen. Also i am having problems with the collisions since at the first moment that a space ship enemy is generated the game detects it as a collision.