Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Search Bar in Xamarin.Forms Xaml

$
0
0

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?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>