Hi All,
I am developing the sample application using xamarin forms.We need to integrate autocompletetextview in our application. For that we have customized the Search bar with listview as autocompletetextview xamarin forms component from the below link.
forums.xamarin.com/discussion/17372/any-chance-to-have-a-xamarin-forms-listview-tableview-to-implement-a-search-facility-to-filter-the
Now we are facing the issue when i focused the searchbar,the listview of the search bar overlapping the other control in the view.
We need to use overlay the listview Instead of overlapping the listview in another control.
how to overlay the listview attaching to searchbar without disturbing the entire design. Is there any property like Z-index in Xamarin.Forms.
Xml Design File
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:eFACiLiTY.ViewModels;assembly=eFACiLiTY"
x:Class="eFACiLiTY.Views.SearchreqFilter" Title="Filter">
<ContentPage.BindingContext>
<local:SearchRequestViewModel/>
</ContentPage.BindingContext>
<ScrollView Orientation="Vertical" VerticalOptions="FillAndExpand">
<StackLayout Orientation="Vertical" VerticalOptions="FillAndExpand"
Padding="10,10"
Spacing="15">
<!--ItemsSource="{Binding SiteListViewSource}"-->
<Label Text="Site" />
<SearchBar x:Name="SiteSearchBar" Text="{Binding GetSiteText,Mode=TwoWay}" TextChanged="OnSite_Searchbar_TextChanged" Placeholder = "Search Your Site" />
<StackLayout>
<ListView x:Name="Site_listView"
IsVisible="false"
ItemsSource="{Binding SiteListViewSource}">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<ViewCell.View>
<StackLayout Orientation="Vertical"
HorizontalOptions="StartAndExpand">
<Label Text="{Binding Description}"
HorizontalOptions="FillAndExpand" />
</StackLayout>
</ViewCell.View>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackLayout>
</ScrollView>
</ContentPage>
I have attached the screenshot for your reference.