So i'm using WPF the wrong way and i have a bunch of dynamically created objects on load... i'm trying to figure out how to databind through C#... what would be the equivalent C# code to this:
<StackPanel DataContext="{Binding SelectedGame}">
<Label Content="{Binding HomeScoreText}" />
<Label Content="{Binding AwayScoreText}" />
</StackPanel>
i'm having trouble finding examples of this online.. thanks