summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/SearchBar.cs
diff options
context:
space:
mode:
authorJason Smith <jason.smith@xamarin.com>2016-04-06 23:09:45 -0700
committerJason Smith <jason.smith@xamarin.com>2016-04-06 23:09:45 -0700
commit1363f383b17d68fbafadc773b9f06f477f9744c9 (patch)
tree2d960e309bd04375167b37c5d31100a9f3f1e448 /Xamarin.Forms.Core/SearchBar.cs
parent26604911bf6e412aa35a36236d04eded8d7bf17c (diff)
downloadxamarin-forms-1363f383b17d68fbafadc773b9f06f477f9744c9.tar.gz
xamarin-forms-1363f383b17d68fbafadc773b9f06f477f9744c9.tar.bz2
xamarin-forms-1363f383b17d68fbafadc773b9f06f477f9744c9.zip
[C] Cast to ICommand instead of Command inside SearchBar
Diffstat (limited to 'Xamarin.Forms.Core/SearchBar.cs')
-rw-r--r--Xamarin.Forms.Core/SearchBar.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xamarin.Forms.Core/SearchBar.cs b/Xamarin.Forms.Core/SearchBar.cs
index 089d9427..f3d51611 100644
--- a/Xamarin.Forms.Core/SearchBar.cs
+++ b/Xamarin.Forms.Core/SearchBar.cs
@@ -134,8 +134,8 @@ namespace Xamarin.Forms
static void OnCommandChanged(BindableObject bindable, object oldValue, object newValue)
{
var self = (SearchBar)bindable;
- var newCommand = (Command)newValue;
- var oldCommand = (Command)oldValue;
+ var newCommand = (ICommand)newValue;
+ var oldCommand = (ICommand)oldValue;
if (oldCommand != null)
{