summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core
diff options
context:
space:
mode:
authorChris King <kingces95@gmail.com>2017-02-14 14:05:47 -0800
committerRui Marinho <me@ruimarinho.net>2017-02-21 10:24:12 +0000
commit68eb31b09ac4f6471457626c0355c6d68a03ab88 (patch)
tree5ac33c0f889d94365f994f6ebadc40293514970e /Xamarin.Forms.Core
parent8c457a0e14f2b9c0df50092ca2fb3b8feebd7bfc (diff)
downloadxamarin-forms-68eb31b09ac4f6471457626c0355c6d68a03ab88.tar.gz
xamarin-forms-68eb31b09ac4f6471457626c0355c6d68a03ab88.tar.bz2
xamarin-forms-68eb31b09ac4f6471457626c0355c6d68a03ab88.zip
IEditorController
Diffstat (limited to 'Xamarin.Forms.Core')
-rw-r--r--Xamarin.Forms.Core/Editor.cs3
-rw-r--r--Xamarin.Forms.Core/IEditorController.cs7
-rw-r--r--Xamarin.Forms.Core/Xamarin.Forms.Core.csproj1
3 files changed, 10 insertions, 1 deletions
diff --git a/Xamarin.Forms.Core/Editor.cs b/Xamarin.Forms.Core/Editor.cs
index 26c6fd4c..019f6e8c 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<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
index 00000000..5fdbe508
--- /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 f1b7f6f3..944309f9 100644
--- a/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj
+++ b/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj
@@ -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" />