顶部简而言之,这是我的Xamarin HomePage.xaml如何添加搜索栏页面
<ContentPage>
<StackLayout>
<SearchBar
x:Name="mySearchBar"
SearchButtonPressed="mySearchBar_ButtonPressed">
</SearchBar>
</StackLayout>
<ScrollView>
<StackLayout>
<!-- Label and entries here -->
<StackLayout>
<!-- Label and entries here -->
</StackLayout>
<!-- Buttons and a listview here -->
</StackLayout>
</ScrollView>
</ContentPage>
的代码,但我想添加页面的搜索栏上方,蓝条。我怎样才能做到这一点?
简答:这是不可能的。你必须自己创建它。 – Farid