BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
I am already using this version and experiencing errors time to time. please see my sflistview below. i am executing property change from viewmodel using mvvm and at the same time, it changes selecteditem and should programmaticly scroll to selecteditem. here there can be problem my assumption. see my scrolling implementation. if scrolling fails and i raise property changed when item is not on the screen. I am not sure if this is possible. although I tried to reproduce this case but it didnt happen in my d
<sfListView:SfListView x:Name="listItems" IsStickyFooter="True" ItemsSource="{Binding Items}" SelectionMode="Single" SelectionGesture="Tap"
ItemSpacing="2" AllowSwiping="False" PropertyChanged="listItems_PropertyChanged" SelectionBackgroundColor="Yellow" Orientation="Horizontal" VerticalOptions="FillAndExpand"
SelectedItem="{Binding CurrentItem, Mode=TwoWay}" ItemHolding="listItems_ItemHolding" HorizontalOptions="FillAndExpand"
ItemDoubleTapped="listItems_ItemDoubleTapped" >
<sfListView:SfListView.LayoutManager>
<sfListView:LinearLayout />
</sfListView:SfListView.LayoutManager>
<sfListView:SfListView.FooterTemplate>
<DataTemplate>
<Grid BackgroundColor="White">
<controls:ImageButton Source="addFAB.png" x:Name="btnAddSet" VerticalOptions="Center"
Command="{Binding Path=BindingContext.AddItemClick, Source={x:Reference Name=cwItemsHorizontal}}" HorizontalOptions="Center"
/>
</Grid>
</DataTemplate>
</sfListView:SfListView.FooterTemplate>
<sfListView:SfListView.DataSource>
<data:DataSource>
<data:DataSource.GroupDescriptors>
<data:GroupDescriptor PropertyName="DisplayOrder" />
</data:DataSource.GroupDescriptors>
</data:DataSource>
</sfListView:SfListView.DataSource>
<sfListView:SfListView.GroupHeaderTemplate>
<DataTemplate>
<ViewCell>
<ViewCell.View>
<AbsoluteLayout InputTransparent="True" WidthRequest="30" Grid.Row="0" Grid.Column="0" HorizontalOptions="Center" VerticalOptions="Start" >
<BoxView StyleClass="Circle" BackgroundColor="#ADD8E6" HorizontalOptions="Center" VerticalOptions="Center"
AbsoluteLayout.LayoutFlags="All" AbsoluteLayout.LayoutBounds=".5,.5,1,1" />
<Label BackgroundColor="Transparent" HorizontalOptions="Center" VerticalOptions="Center" Text="{Binding Key}" StyleClass="Body"
AbsoluteLayout.LayoutFlags="All" AbsoluteLayout.LayoutBounds=".5,.5,1,1" />
</AbsoluteLayout>
</ViewCell.View>
</ViewCell>
</DataTemplate>
</sfListView:SfListView.GroupHeaderTemplate>
<sfListView:SfListView.ItemSize>
<OnPlatform x:TypeArguments="x:Double">
<OnPlatform.Android>
<OnIdiom x:TypeArguments="x:Double" Phone="100" Tablet="150" />
</OnPlatform.Android>
<OnPlatform.iOS>
<OnIdiom x:TypeArguments="x:Double" Phone="100" Tablet="150" />
</OnPlatform.iOS>
<OnPlatform.WinPhone>
<OnIdiom x:TypeArguments="x:Double" Phone="100" Tablet="200" Desktop="250" />
</OnPlatform.WinPhone>
</OnPlatform>
</sfListView:SfListView.ItemSize>
<sfListView:SfListView.ItemTemplate>
<DataTemplate>
<AbsoluteLayout InputTransparent="True" >
</AbsoluteLayout>
</DataTemplate>
</sfListView:SfListView.ItemTemplate>
</sfListView:SfListView>
private void listItems_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
{
if (e.PropertyName == "SelectedItem")
{
try
{
if (vm == null)
vm = (BaseItemsPageModel)this.BindingContext;
int ScrollIndex= vm.CurrentItem != null ? vm.Items.IndexOf(vm.CurrentItem) : 1;
(listItems.LayoutManager as Syncfusion.ListView.XForms.LinearLayout).ScrollToRowIndex(ScrollIndex);
}
catch (Exception ex)
{
}
}
}
experiencing exactly the same issue when using multi level hierarchy groups
Hi Michael,
We have checked the reported problem at our end. And we have addressed this query in your reported ticket. Please follow the support ticket under your account for further updates.
Regards,
Suthi