private void Button_Click(object sender, RoutedEventArgs e) { NumberOfPlayers test = canvas1.Resources["numberOfPlayers"] as NumberOfPlayers; test.Add(4); }
public BindingTest() { InitializeComponent(); NumberOfPlayers.Add(1); NumberOfPlayers.Add(2); }