public TCPerformance() { Console.WriteLine($"TCPerformance"); EcoreAnimator = DependencyService.Get <IEcoreAnimator>(DependencyFetchTarget.NewInstance); GlobalScrollConfig = DependencyService.Get <IGlobalScrollConfig>(DependencyFetchTarget.NewInstance); InitializeListItem(); int index = 0; _listView = new RenderCircleListView { ItemsSource = _testData, ItemTemplate = new DataTemplate(() => { var cell = new MyViewCell { Text = _testData[index++].Label }; return(cell); }), }; _popUp = new InformationPopup(); _popUp.BackButtonPressed += (s, e) => { _popUp.Dismiss(); }; // start performance check _listView.Changed += OnStartCalculator; _listView.ScrollStarted += OnStartCheckFps; _listView.ScrollStopped += StopCheckFps; Content = _listView; }
public TCPerformance() { InitializeListItem(); int index = 0; _listView = new RenderCircleListView { ItemsSource = _testData, ItemTemplate = new DataTemplate(() => { var cell = new MyViewCell { Text = _testData[index++ % _testData.Count].Label }; return(cell); }), }; _listView.RenderPost += OnRenderPost; _startButton = new Button { Text = "Start", }; _startButton.Clicked += OnStarted; Content = new StackLayout { Children = { _startButton, _listView, } }; }