[英]How to add Search bar in top of a tabbed page in xamarin forms
In my xamarin app,I want to add a search bar on top of the page in my tabbed page. 在我的xamarin应用程序中,我想在选项卡式页面的页面顶部添加搜索栏。
<TabbedPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Sample.Mobile.Test">
<StackLayout>
<SearchBar></SearchBar>
</StackLayout>
<TabbedPage.Children>
<ContentPage x:Name="tab1" Title="Home">
</ContentPage>
</TabbedPage.Children>
</TabbedPage>
您可以使用此链接作为搜索栏的实现https://developer.xamarin.com/api/type/Xamarin.Forms.SearchBar/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.