简体   繁体   English

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

[英]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.

相关问题 如何在Xamarin表单的顶部选项卡式页面上显示搜索选项卡? - How to bring a search tab on top tabbed page in xamarin forms? 如何在xamarin.forms的选项卡式页面内添加用户控件 - How to add a user control inside a tabbed page in xamarin.forms 什么决定Xamarin.Forms标签页中标签栏的颜色? - What decides the color of the tab bar in a Xamarin.Forms tabbed page? Xamarin表单中的选项卡式页面OnBackButtonPressed - Tabbed Page OnBackButtonPressed in Xamarin Forms 如何更改 Xamarin Forms 中标签页指示器的颜色 - How to change the color of tabbed page indicator in Xamarin Forms 如何在 Xamarin Forms 中隐藏另一个页面的 Shell Tabbed? - How to hide Shell Tabbed from another Page in Xamarin Forms? 如何将 xamarin 表单中的选项卡 2 设置为启动时的默认选项卡 - How set tab 2 in a xamarin forms Tabbed Page as the default tab on startup Xamarin.Forms:如何在整个应用程序中获取选项卡式页面 - Xamarin.Forms: How to get Tabbed Page throughout the app Xamarin构成Android我们如何更改选项卡式页面图标大小 - Xamarin forms Android how We change Tabbed Page Icon Size 在Xamarin Forms 3.1中,当使用带有4个选项卡的标签页时,如何防止Android上标签栏的“滑动”效果? - In Xamarin Forms 3.1, when using tabbed page with 4 tabs, how can I prevent “sliding” effect of tab bar on Android?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM