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/Custom/NumericTextField.cs')
-rw-r--r--Xamarin.PropertyEditing.Mac/Controls/Custom/NumericTextField.cs5
1 files changed, 1 insertions, 4 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/Custom/NumericTextField.cs b/Xamarin.PropertyEditing.Mac/Controls/Custom/NumericTextField.cs
index 1043286..9e00331 100644
--- a/Xamarin.PropertyEditing.Mac/Controls/Custom/NumericTextField.cs
+++ b/Xamarin.PropertyEditing.Mac/Controls/Custom/NumericTextField.cs
@@ -54,10 +54,7 @@ namespace Xamarin.PropertyEditing.Mac
public ProxyResponder ProxyResponder
{
get {
- if (Delegate is KeyUpDownDelegate keydown) {
- return keydown.ProxyResponder;
- }
- return null;
+ return Delegate is KeyUpDownDelegate viewDownDelegate ? viewDownDelegate.ProxyResponder : null;
}
set
{