What is the proper layout type to use when doing a searchbar?
In IOS, with a page that contains several controls, you would want the listview to appear only when you are typing into the searchbar.
I experimented with Grids, StackLayouts, etc. Whatever space gets allocated in the layout for the listview is never collapsed when done searching & you hide the listview. Work fine in Windows and Android.
What is the proper way to do this?
One of many unsuccessful attempts:
<Grid RowDefinitions="Auto,Auto,Auto" Grid.Row="0">
<Label Text="Employee:" FontSize="Small" WidthRequest="120" Grid.Row="0" />
<SearchBar x:Name="EmployeeSearch" Placeholder="Select Employee..." TextChanged="OnTextChangedEmployee" HorizontalOptions="Center" WidthRequest="120" BackgroundColor="Red" HeightRequest="200" Grid.Row="1" />
<telerik:RadListView x:Name="searchResultsEmployee" ItemTapped="OnItemTappedEmployee" Grid.Row="2" BackgroundColor="Green" HeightRequest="200">
<telerik:RadListView.ItemTemplate>
<DataTemplate>
<telerik:ListViewTemplateCell>
<telerik:ListViewTemplateCell.View>
<Grid>
<Label Margin="10" Text="{Binding EmployeeName}" />
</Grid>
</telerik:ListViewTemplateCell.View>
</telerik:ListViewTemplateCell>
</DataTemplate>
</telerik:RadListView.ItemTemplate>
</telerik:RadListView>
</Grid>