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:
-rw-r--r--Xamarin.PropertyEditing.Mac/Controls/Custom/UnfocusableButton.cs12
1 files changed, 9 insertions, 3 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/Custom/UnfocusableButton.cs b/Xamarin.PropertyEditing.Mac/Controls/Custom/UnfocusableButton.cs
index 0b672a1..371087d 100644
--- a/Xamarin.PropertyEditing.Mac/Controls/Custom/UnfocusableButton.cs
+++ b/Xamarin.PropertyEditing.Mac/Controls/Custom/UnfocusableButton.cs
@@ -33,7 +33,8 @@ namespace Xamarin.PropertyEditing.Mac
public override void MouseDown (NSEvent theEvent)
{
- switch (theEvent.Type) {
+ if (Enabled) {
+ switch (theEvent.Type) {
case NSEventType.LeftMouseDown:
NotifyMouseLeftDown ();
break;
@@ -41,17 +42,22 @@ namespace Xamarin.PropertyEditing.Mac
case NSEventType.RightMouseDown:
NotifyMouseRightDown ();
break;
+ }
}
}
public override void MouseEntered (NSEvent theEvent)
{
- NotifyMouseEntered ();
+ if (Enabled) {
+ NotifyMouseEntered ();
+ }
}
public override void MouseExited (NSEvent theEvent)
{
- NotifyMouseExited ();
+ if (Enabled) {
+ NotifyMouseExited ();
+ }
}
public override void UpdateTrackingAreas ()