0

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

1 回答 1

0

您可以使用此链接进行搜索栏实施 https://developer.xamarin.com/api/type/Xamarin.Forms.SearchBar/

于 2017-09-06T11:46:20.157 回答