diff options
author | E.Z. Hart <hartez@users.noreply.github.com> | 2016-05-02 14:55:43 -0600 |
---|---|---|
committer | E.Z. Hart <hartez@users.noreply.github.com> | 2016-05-02 14:55:43 -0600 |
commit | 93f22aaf28a3580b19559a793e2a3e6cd91b9bdb (patch) | |
tree | 6d8dfc9e36a7e3715cf3790d58268c27483d289c /Xamarin.Forms.Core | |
parent | 2231302a182c9adff088fff3580791e2e0794336 (diff) | |
download | xamarin-forms-93f22aaf28a3580b19559a793e2a3e6cd91b9bdb.tar.gz xamarin-forms-93f22aaf28a3580b19559a793e2a3e6cd91b9bdb.tar.bz2 xamarin-forms-93f22aaf28a3580b19559a793e2a3e6cd91b9bdb.zip |
Prep SearchBar for removal of InternalsVisibleTo (#137)
Diffstat (limited to 'Xamarin.Forms.Core')
-rw-r--r-- | Xamarin.Forms.Core/ISearchBarController.cs | 7 | ||||
-rw-r--r-- | Xamarin.Forms.Core/SearchBar.cs | 4 | ||||
-rw-r--r-- | Xamarin.Forms.Core/Xamarin.Forms.Core.csproj | 1 |
3 files changed, 10 insertions, 2 deletions
diff --git a/Xamarin.Forms.Core/ISearchBarController.cs b/Xamarin.Forms.Core/ISearchBarController.cs new file mode 100644 index 00000000..8efe97bf --- /dev/null +++ b/Xamarin.Forms.Core/ISearchBarController.cs @@ -0,0 +1,7 @@ +namespace Xamarin.Forms +{ + public interface ISearchBarController + { + void OnSearchButtonPressed(); + } +}
\ No newline at end of file diff --git a/Xamarin.Forms.Core/SearchBar.cs b/Xamarin.Forms.Core/SearchBar.cs index f3d51611..40bf2502 100644 --- a/Xamarin.Forms.Core/SearchBar.cs +++ b/Xamarin.Forms.Core/SearchBar.cs @@ -5,7 +5,7 @@ using Xamarin.Forms.Platform; namespace Xamarin.Forms { [RenderWith(typeof(_SearchBarRenderer))] - public class SearchBar : View, IFontElement + public class SearchBar : View, IFontElement, ISearchBarController { public static readonly BindableProperty SearchCommandProperty = BindableProperty.Create("SearchCommand", typeof(ICommand), typeof(SearchBar), null, propertyChanged: OnCommandChanged); @@ -113,7 +113,7 @@ namespace Xamarin.Forms public event EventHandler<TextChangedEventArgs> TextChanged; - internal void OnSearchButtonPressed() + void ISearchBarController.OnSearchButtonPressed() { ICommand cmd = SearchCommand; diff --git a/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj b/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj index 77503f83..ef4da083 100644 --- a/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj +++ b/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj @@ -137,6 +137,7 @@ <Compile Include="IResourcesProvider.cs" /> <Compile Include="IRootObjectProvider.cs" /> <Compile Include="IScrollViewController.cs" /> + <Compile Include="ISearchBarController.cs" /> <Compile Include="ItemTappedEventArgs.cs" /> <Compile Include="ItemVisibilityEventArgs.cs" /> <Compile Include="IValueConverterProvider.cs" /> |