using System.Windows; using Game.Core.TerrainDataModels; namespace DatabindingTheVideogame { /// /// Interaction logic for Window1.xaml /// public partial class Window1 { public Window1() { InitializeComponent(); } private void Dirt_Click(object sender, RoutedEventArgs e) { mapView.DataContext = new Dirt(); } private void SteelPlate_Click(object sender, RoutedEventArgs e) { mapView.DataContext = new SteelPlate(); } } }