Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Navigating from One Tab to another taking time - I am using custom control for Tab

$
0
0

I am creating App in Xamarin Form which has three Tabs and each tab has a content page

Page 1 - It has a chart control and a List view which is created using grid control.
Page 2 - It has just a List view which is created using the grid control
Page 3 - It also has just a List view which is created using the grid control

For tabs I am using button control in the Custom page which we will call as HeaderFooter page and this HeaderFooter page is inherited in each content page[ Page 1,Page 2,Page 3].

When we tab the Page 1 button an event gets fired in the HeaderFooter page,there I am creating the object for Page1 like

Page1 obj1 = new Page1();

In the Page 1 constructor I will get the data from SQLite DB frame the chart object and List view object.

Then I am passing the Page 1 object to Navigation

Navigation.PushAsync(obj1) ;

So the same process has been followed for all three tabs.

So the issue here is for navigating from one tab to other it is taking minimum 2.5 seconds.

For navigating to Page 1 it is taking 7.5 seconds as it has the charting control and List view control. [ data can be 1000 records]
For navigating to Page 2 it is taking 2.8 seconds as it has List view control [ data can be 100 records]
For navigating to page 3 it is taking 2.5 seconds as it has list view control and very less data [ data for now 4 records]

I would like to know why it is taking this much time and how can I improve the performance.

Note : I could not use the xamarin Tabs control because of the UI design.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>