How to update UI easily on variable change in MAUI
I need to update a lot of text and it is desirable to link the update to a change in variables, I tried to use binding, but as I understood it, it does not suit me


using PropertyChanged;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
namespace IdleLight
{
[AddINotifyPropertyChangedInterface]
public partial class MainGame
{
private static MainGame _instance;
private MainGame() { }
public static MainGame GetInstance()
{
if(_instance == null)
{
_instance = new MainGame();
}
return _instance;
}
public int light { get; set; } = 0;
public int lightPerTick { get; set; } = 1;
}
}