简要来说这是我的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>
但我想添加页面顶部的搜索栏,蓝色栏。我怎么能这样做?
答案 0 :(得分:2)
答案 1 :(得分:2)