diff options
Diffstat (limited to 'Xamarin.PropertyEditing.Mac/PropertyEditorPanel.cs')
-rw-r--r-- | Xamarin.PropertyEditing.Mac/PropertyEditorPanel.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Xamarin.PropertyEditing.Mac/PropertyEditorPanel.cs b/Xamarin.PropertyEditing.Mac/PropertyEditorPanel.cs index bd30c24..850665a 100644 --- a/Xamarin.PropertyEditing.Mac/PropertyEditorPanel.cs +++ b/Xamarin.PropertyEditing.Mac/PropertyEditorPanel.cs @@ -89,7 +89,9 @@ namespace Xamarin.PropertyEditing.Mac var views = this.tabStack.Views; for (int i = 0; i < views.Length; i++) { - ((TabButton)views[i]).Clicked -= OnArrangeModeChanged; + var button = (TabButton)views[i]; + button.Clicked -= OnArrangeModeChanged; + button.RemoveFromSuperview (); } } |