/// <summary> /// Destruct the previously created views. /// </summary> public void Destruct() { // Unhook from events _buttonSpec.ButtonSpecPropertyChanged -= new PropertyChangedEventHandler(OnPropertyChanged); // Remove buttonspec/view association _buttonSpec.SetView(null); // Remove all view element resources _viewCenter.Dispose(); }