diff options
author | Chris King <kingces95@gmail.com> | 2017-02-17 12:04:50 -0800 |
---|---|---|
committer | Rui Marinho <me@ruimarinho.net> | 2017-02-21 10:24:12 +0000 |
commit | 217a59e5873b1a4850719c26b11b853270df70ce (patch) | |
tree | 58071c61764cf9eee170bfad9e6408b2bd5e9cb0 /Xamarin.Forms.Platform.iOS | |
parent | 5e84299ac3f01bed5f5a69313dd3a1fe2598e41a (diff) | |
download | xamarin-forms-217a59e5873b1a4850719c26b11b853270df70ce.tar.gz xamarin-forms-217a59e5873b1a4850719c26b11b853270df70ce.tar.bz2 xamarin-forms-217a59e5873b1a4850719c26b11b853270df70ce.zip |
update IEditorController callsites
Diffstat (limited to 'Xamarin.Forms.Platform.iOS')
-rw-r--r-- | Xamarin.Forms.Platform.iOS/Renderers/EditorRenderer.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Renderers/EditorRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/EditorRenderer.cs index b11c3270..b87c0d3c 100644 --- a/Xamarin.Forms.Platform.iOS/Renderers/EditorRenderer.cs +++ b/Xamarin.Forms.Platform.iOS/Renderers/EditorRenderer.cs @@ -8,9 +8,9 @@ namespace Xamarin.Forms.Platform.iOS public class EditorRenderer : ViewRenderer<Editor, UITextView> { bool _disposed; - IElementController ElementController => Element as IElementController; + IEditorController ElementController => Element; - protected override void Dispose(bool disposing) + protected override void Dispose(bool disposing) { if (_disposed) return; @@ -51,7 +51,7 @@ namespace Xamarin.Forms.Platform.iOS var doneButton = new UIBarButtonItem(UIBarButtonSystemItem.Done, (o, a) => { Control.ResignFirstResponder(); - Element.SendCompleted(); + ElementController.SendCompleted(); }); accessoryView.SetItems(new[] { spacer, doneButton }, false); Control.InputAccessoryView = accessoryView; @@ -100,7 +100,7 @@ namespace Xamarin.Forms.Platform.iOS ElementController.SetValueFromRenderer(Editor.TextProperty, Control.Text); Element.SetValue(VisualElement.IsFocusedPropertyKey, false); - Element.SendCompleted(); + ElementController.SendCompleted(); } void OnStarted(object sender, EventArgs eventArgs) |