summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Core')
-rw-r--r--Xamarin.Forms.Core/Entry.cs4
-rw-r--r--Xamarin.Forms.Core/IEntryController.cs7
-rw-r--r--Xamarin.Forms.Core/Xamarin.Forms.Core.csproj1
3 files changed, 10 insertions, 2 deletions
diff --git a/Xamarin.Forms.Core/Entry.cs b/Xamarin.Forms.Core/Entry.cs
index ef10e963..1ee2f856 100644
--- a/Xamarin.Forms.Core/Entry.cs
+++ b/Xamarin.Forms.Core/Entry.cs
@@ -4,7 +4,7 @@ using Xamarin.Forms.Platform;
namespace Xamarin.Forms
{
[RenderWith(typeof(_EntryRenderer))]
- public class Entry : InputView, IFontElement
+ public class Entry : InputView, IFontElement, IEntryController
{
public static readonly BindableProperty PlaceholderProperty = BindableProperty.Create("Placeholder", typeof(string), typeof(Entry), default(string));
@@ -84,7 +84,7 @@ namespace Xamarin.Forms
public event EventHandler<TextChangedEventArgs> TextChanged;
- internal void SendCompleted()
+ void IEntryController.SendCompleted()
{
Completed?.Invoke(this, EventArgs.Empty);
}
diff --git a/Xamarin.Forms.Core/IEntryController.cs b/Xamarin.Forms.Core/IEntryController.cs
new file mode 100644
index 00000000..4db63384
--- /dev/null
+++ b/Xamarin.Forms.Core/IEntryController.cs
@@ -0,0 +1,7 @@
+namespace Xamarin.Forms
+{
+ public interface IEntryController
+ {
+ 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 dbd109a6..77503f83 100644
--- a/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj
+++ b/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj
@@ -92,6 +92,7 @@
<Compile Include="ElementEventArgs.cs" />
<Compile Include="ElementTemplate.cs" />
<Compile Include="EmailKeyboard.cs" />
+ <Compile Include="IEntryController.cs" />
<Compile Include="Internals\EvalRequested.cs" />
<Compile Include="ExportEffectAttribute.cs" />
<Compile Include="ExpressionSearch.cs" />