繁体   English   中英

如何在Xamarin表单的选项卡式页面顶部添加搜索栏

[英]How to add Search bar in top of a tabbed page in xamarin forms

在我的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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM