Hi,
I have few problems with SfTabView, I use it with the following attributes:
<tabView:SfTabView BackgroundColor="White" InputTransparent="False" x:Name="ItemsTab" TabHeaderDirection="LeftToRight" EnableSwiping="True" VerticalOptions="FillAndExpand" TabHeight="30" OverflowMode="Scroll" VisibleHeaderCount="3" SelectedIndex="{Binding SelectedTabIndex,Mode=TwoWay}" TabHeaderPosition="Top" Items="{Binding TabItems}">
<tabView:SfTabView.SelectionIndicatorSettings>
<tabView:SelectionIndicatorSettings Color="#9d88ff" Position="Bottom" StrokeThickness="3" />
</tabView:SfTabView.SelectionIndicatorSettings>
</tabView:SfTabView>
I generate tabs dynamically in an async task, each tab content has only one SfListView which is generated like this:
SfListView main_List = new SfListView();
main_List.SelectionMode = Syncfusion.ListView.XForms.SelectionMode.None;
//main_List.SelectionGesture = TouchGesture.Tap;
main_List.VerticalOptions = LayoutOptions.FillAndExpand;
main_List.HorizontalOptions = LayoutOptions.FillAndExpand;
main_List.ItemsSource = source;
main_List.IsScrollBarVisible = false;
main_List.AutoFitMode = AutoFitMode.DynamicHeight;
main_List.BackgroundColor = Color.White;
main_List.Margin = new Thickness(1, 0, 1, 0);
main_List.Padding = 0;
main_List.GroupHeaderSize = 0;
main_List.ItemSpacing = 1;
main_List.LoadMoreOption = LoadMoreOption.AutoOnScroll;
main_List.LoadMoreCommand = LoadMoreCommand;
main_List.SwipeOffset = 0;
main_List.LoadMorePosition = LoadMorePosition.Bottom;
main_List.LoadMoreCommandParameter = main_List;
main_List.TabIndex = tabIndex;
main_List.ItemTemplate = ItemDataTemplate;
I attached the SfListView ItemDataTemplate rar file
when I run the application I get 3 problems:
1- On app startup tabview doesn't appear.. if I reload the main page is shows up
2-If I set list AutoFitMode to DynamicHeight items doesn't get calculated correctly initially, I need to scroll down then up so it render correctly
3-The most odd one, since there is multiple tabs (+5), when I scroll fast to the last tab header and click nothing happens, and I get a small vibration (haptic one I guess). But if I don't click immediately after scrolling and wait about 2 seconds then the tab get selected.
I tried different solutions but with no avail
PS:
-None of the above problems occurs on Android
-I set list's items source on TabSelectedIndex change, because if I don't do that I may get a blank list (this is applicable in Android as well)
-I'm working on Visual Studio on mac
XF : 5.0.0.1874
SfTabView : 18.4.0.34
iOS SDK : 14.4
Device : iPhoneX - OS 13.7
Best regards,
Attachment:
info_5a73f406.rar