IEditorController
authorChris King <kingces95@gmail.com>
Tue, 14 Feb 2017 22:05:47 +0000 (14:05 -0800)
committerRui Marinho <me@ruimarinho.net>
Tue, 21 Feb 2017 10:24:12 +0000 (10:24 +0000)
Xamarin.Forms.Core/Editor.cs
Xamarin.Forms.Core/IEditorController.cs [new file with mode: 0644]
Xamarin.Forms.Core/Xamarin.Forms.Core.csproj

index 26c6fd4..019f6e8 100644 (file)
@@ -4,7 +4,7 @@ using Xamarin.Forms.Platform;
 namespace Xamarin.Forms
 {
        [RenderWith(typeof(_EditorRenderer))]
-       public class Editor : InputView, IFontElement, IElementConfiguration<Editor>
+       public class Editor : InputView, IEditorController, IFontElement, IElementConfiguration<Editor>
        {
                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<T>();
                }
 
+               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 (file)
index 0000000..5fdbe50
--- /dev/null
@@ -0,0 +1,7 @@
+namespace Xamarin.Forms
+{
+       public interface IEditorController : IViewController
+       {
+               void SendCompleted();
+       }
+}
\ No newline at end of file
index f1b7f6f..944309f 100644 (file)
@@ -87,6 +87,7 @@
     <Compile Include="DataTemplateSelector.cs" />
     <Compile Include="DateChangedEventArgs.cs" />
     <Compile Include="DelegateLogListener.cs" />
+    <Compile Include="IEditorController.cs" />
     <Compile Include="Internals\EffectUtilities.cs" />
     <Compile Include="EnumerableExtensions.cs" />
     <Compile Include="PlatformConfiguration\AndroidSpecific\AppCompat\Application.cs" />