Hi there, so I've been trying to add a search bar to my xaml page. I started by making a new project > Cross Platform > Mobile App (Xamarin.Forms) and then selecting Shared Project.
<ContentPage.Content>
<StackLayout>
<Label Text="Find your item..."
VerticalOptions="StartAndExpand"
HorizontalOptions="CenterAndExpand"
TextColor="#000000"
FontSize="18"
Margin="0,40,0,0"/>
</StackLayout>
<SearchBar/>
</ContentPage.Content>
When doing this, it just says in the Xamarin.Forms.Previewer "An Exception occured while rendering the control." I've tried making different projects, nothing. I'm sure I've made it right, but I can't see what the problem is. Any ideas?