簡體   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