From 420ceb37d0d1d78dde17c717614c6874684a399e Mon Sep 17 00:00:00 2001 From: Paul DiPietro Date: Thu, 8 Sep 2016 17:00:57 -0500 Subject: [iOS] Adjust Started/Ended hooks in pickers for iOS 10 (#339) --- Xamarin.Forms.Platform.iOS/Renderers/DatePickerRenderer.cs | 4 ++-- Xamarin.Forms.Platform.iOS/Renderers/PickerRenderer.cs | 4 ++-- Xamarin.Forms.Platform.iOS/Renderers/TimePickerRenderer.cs | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Xamarin.Forms.Platform.iOS/Renderers/DatePickerRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/DatePickerRenderer.cs index a591243c..d4ba00e7 100644 --- a/Xamarin.Forms.Platform.iOS/Renderers/DatePickerRenderer.cs +++ b/Xamarin.Forms.Platform.iOS/Renderers/DatePickerRenderer.cs @@ -48,8 +48,8 @@ namespace Xamarin.Forms.Platform.iOS { var entry = new NoCaretField { BorderStyle = UITextBorderStyle.RoundedRect }; - entry.Started += OnStarted; - entry.Ended += OnEnded; + entry.EditingDidBegin += OnStarted; + entry.EditingDidEnd += OnEnded; _picker = new UIDatePicker { Mode = UIDatePickerMode.Date, TimeZone = new NSTimeZone("UTC") }; diff --git a/Xamarin.Forms.Platform.iOS/Renderers/PickerRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/PickerRenderer.cs index bebf91cf..069fc026 100644 --- a/Xamarin.Forms.Platform.iOS/Renderers/PickerRenderer.cs +++ b/Xamarin.Forms.Platform.iOS/Renderers/PickerRenderer.cs @@ -37,8 +37,8 @@ namespace Xamarin.Forms.Platform.iOS { var entry = new NoCaretField { BorderStyle = UITextBorderStyle.RoundedRect }; - entry.Started += OnStarted; - entry.Ended += OnEnded; + entry.EditingDidBegin += OnStarted; + entry.EditingDidEnd += OnEnded; _picker = new UIPickerView(); diff --git a/Xamarin.Forms.Platform.iOS/Renderers/TimePickerRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/TimePickerRenderer.cs index f8529800..c64ce8fb 100644 --- a/Xamarin.Forms.Platform.iOS/Renderers/TimePickerRenderer.cs +++ b/Xamarin.Forms.Platform.iOS/Renderers/TimePickerRenderer.cs @@ -32,8 +32,8 @@ namespace Xamarin.Forms.Platform.iOS { if (disposing) { - Control.Started -= OnStarted; - Control.Ended -= OnEnded; + Control.EditingDidBegin -= OnStarted; + Control.EditingDidEnd -= OnEnded; _picker.ValueChanged -= OnValueChanged; } @@ -49,8 +49,8 @@ namespace Xamarin.Forms.Platform.iOS { var entry = new NoCaretField { BorderStyle = UITextBorderStyle.RoundedRect }; - entry.Started += OnStarted; - entry.Ended += OnEnded; + entry.EditingDidBegin += OnStarted; + entry.EditingDidEnd += OnEnded; _picker = new UIDatePicker { Mode = UIDatePickerMode.Time, TimeZone = new NSTimeZone("UTC") }; -- cgit v1.2.3