public MainPage() { this.InitializeComponent(); _tivaCopterVM = new ViewModel.TivaCopterViewModel(); this.DataContext = _tivaCopterVM; }
private void Dispose(bool disposing) { if (!disposed) { // Dispose managed resources. if (disposing) { _tivaCopterVM.Dispose(); _tivaCopterVM = null; } // Call the appropriate methods to clean upunmanaged resources here. // ... disposed = true; } }