Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/Xamarin.PropertyEditing.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.PropertyEditing.Mac/Controls')
-rw-r--r--Xamarin.PropertyEditing.Mac/Controls/Custom/PropertyButton.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/Custom/PropertyButton.cs b/Xamarin.PropertyEditing.Mac/Controls/Custom/PropertyButton.cs
index 5fc2093..90ca577 100644
--- a/Xamarin.PropertyEditing.Mac/Controls/Custom/PropertyButton.cs
+++ b/Xamarin.PropertyEditing.Mac/Controls/Custom/PropertyButton.cs
@@ -16,7 +16,7 @@ namespace Xamarin.PropertyEditing.Mac
PropertyViewModel viewModel;
internal PropertyViewModel ViewModel
{
- get { return viewModel; }
+ get { return this.viewModel; }
set {
if (this.viewModel != null) {
this.viewModel.PropertyChanged -= OnPropertyChanged;
@@ -32,6 +32,11 @@ namespace Xamarin.PropertyEditing.Mac
this.viewModel.CreateBindingRequested += OnBindingRequested;
ValueSourceChanged (this.viewModel.ValueSource);
}
+
+ if (this.popUpContextMenu != null) {
+ this.popUpContextMenu.RemoveAllItems ();
+ this.popUpContextMenu = null;
+ }
}
}