public GPSView() { InitializeComponent(); //instantiate viewmodel and set datacontext gpsVM = new GPSViewViewModel(this.Dispatcher); gpsVM.map = myMap; this.DataContext = gpsVM; }
public GPSCoordinatesView() { InitializeComponent(); gpsVM = new GPSViewViewModel(this.Dispatcher); this.DataContext = gpsVM; }