I have a very simple app using XAML. It was working fine, then I get the following error when running the project:
Cannot assign property "SearchCommand": type mismatch between "System.String" and "System.Windows.Input.ICommand"
Here is the XAML:
<?xml version="1.0" encoding="utf-8" ?>
<SearchBar x:Name="searchBar"
Placeholder="Enter search terms"
HorizontalOptions="FillAndExpand"
SearchCommand="OnSearchButtonClicked">
</SearchBar>
<ScrollView VerticalOptions="FillAndExpand">
<StackLayout x:Name="resultsLayout">
</StackLayout>
</ScrollView>
I'm confused as it was working fine earlier.