From 68eb31b09ac4f6471457626c0355c6d68a03ab88 Mon Sep 17 00:00:00 2001 From: Chris King Date: Tue, 14 Feb 2017 14:05:47 -0800 Subject: [PATCH] IEditorController --- Xamarin.Forms.Core/Editor.cs | 3 ++- Xamarin.Forms.Core/IEditorController.cs | 7 +++++++ Xamarin.Forms.Core/Xamarin.Forms.Core.csproj | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 Xamarin.Forms.Core/IEditorController.cs diff --git a/Xamarin.Forms.Core/Editor.cs b/Xamarin.Forms.Core/Editor.cs index 26c6fd4..019f6e8 100644 --- a/Xamarin.Forms.Core/Editor.cs +++ b/Xamarin.Forms.Core/Editor.cs @@ -4,7 +4,7 @@ using Xamarin.Forms.Platform; namespace Xamarin.Forms { [RenderWith(typeof(_EditorRenderer))] - public class Editor : InputView, IFontElement, IElementConfiguration + public class Editor : InputView, IEditorController, IFontElement, IElementConfiguration { public static readonly BindableProperty TextProperty = BindableProperty.Create("Text", typeof(string), typeof(Editor), null, BindingMode.TwoWay, propertyChanged: (bindable, oldValue, newValue) => { @@ -68,6 +68,7 @@ namespace Xamarin.Forms return _platformConfigurationRegistry.Value.On(); } + void IEditorController.SendCompleted() => SendCompleted(); internal void SendCompleted() { EventHandler handler = Completed; diff --git a/Xamarin.Forms.Core/IEditorController.cs b/Xamarin.Forms.Core/IEditorController.cs new file mode 100644 index 0000000..5fdbe50 --- /dev/null +++ b/Xamarin.Forms.Core/IEditorController.cs @@ -0,0 +1,7 @@ +namespace Xamarin.Forms +{ + public interface IEditorController : IViewController + { + void SendCompleted(); + } +} \ No newline at end of file diff --git a/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj b/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj index f1b7f6f..944309f 100644 --- a/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj +++ b/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj @@ -87,6 +87,7 @@ + -- 2.7.4