✅ Issues with wpf binding

Hey guys, i'm having some issues with bindining a number Score to a Label in wpf, here's my code:
    public partial class MainWindow : Window
    {
        public static int Score { get; set; } = 10;
        public static int Seed {  get; set; }
        double WorldHeight { get; set; }
        double WorldWidth { get; set; }

        public MainWindow()
        {
            InitializeComponent();
            Seed = new Random().Next(1,1000);
            Loaded+=(s,e)=>GenerateWorld();
            DataContext = this;
        }
      //....
     }

    <Canvas x:Name="Display">
        <Label x:Name="ScoreDisplay" Content="{Binding Path=Score}" Panel.ZIndex="10" Canvas.Top="0" Canvas.Left="960" FontSize="24" FontWeight="Bold"/>
    </Canvas>

At the beggining the Label shows 10, but when i increment Score it doesn't update
Was this page helpful?