BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
<listView:SfListView x:Name="listView" ItemSize="70" ItemSpacing="0,0,5,0"
ItemsSource="{Binding contactsinfo}">
<listView:SfListView.Behaviors>
<local:EventToCommandBehavior EventName="Loaded"
Command="{Binding LoadedCommand}"
Converter="{StaticResource EventArgs}" />
<local:EventToCommandBehavior EventName="SelectionChanged"
Command="{Binding SelectionChangedCommand}"
Converter="{StaticResource EventArgs}" />
</listView:SfListView.Behaviors>
</listView:SfListView> |
public void OnListViewLoaded(SfListView listView)
{
ListView = listView;
}
public async void OnSelectionChanged(ItemSelectionChangedEventArgs eventArgs)
{
if (ListView.SelectedItem != null)
index = contactsinfo.IndexOf(ListView.SelectedItem as Contacts);
await Task.Delay(500);
(ListView.LayoutManager as LinearLayout).ScrollToRowIndex(index + 1);
} |