Hi,
I want to acces a search-bar in the codebehind.
Here is my code:
xaml:
<syncfusionListView:SfListView x:Name="lsvListView" BackgroundColor="Transparent" ItemSize="200">
<syncfusionListView:SfListView.HeaderTemplate>
<DataTemplate>
<StackLayout Margin="20,0,20,0">
<Label BackgroundColor="Transparent" HeightRequest="15"/>
<SearchBar x:Name="sebSearchBar" Placeholder="Suche..." TextColor="#222A2C" TextChanged="SebSearchBarTextChanged" Margin="-15,0,0,0"/>
<Label BackgroundColor="Transparent" HeightRequest="15"/>
</StackLayout>
</DataTemplate>
</syncfusionListView:SfListView.HeaderTemplate>
</syncfusionListView:SfListView>
codebehind:
sebSearchBar.Text="example text"; //this doesn't work