public CustomChartPage() { chartService = new CustomCharts.Services.ChartController(); pageLayout = new StackLayout(); absolutelayout = new AbsoluteLayout(); lView = InitializeListView(); floatingButton = InitializeFloatingButton(); this.Icon = new FileImageSource { File = "ic_pie_chart_black_24dp.png" }; this.Title = "My Charts"; this.Content = absolutelayout; UpdateLayout(); AbsoluteLayout.SetLayoutFlags(pageLayout, AbsoluteLayoutFlags.All); AbsoluteLayout.SetLayoutBounds(pageLayout, new Rectangle(0f, 0f, 1f, 1f)); absolutelayout.HorizontalOptions = LayoutOptions.FillAndExpand; absolutelayout.VerticalOptions = LayoutOptions.FillAndExpand; absolutelayout.Children.Add(pageLayout); absolutelayout.Children.Add(floatingButton); chartService.Charts.CollectionChanged += CollectionCustomChart_CollectionChanged; }
/// <summary> /// Muestra el popupView y guarda el objeto chartController /// </summary> /// <param name="chartService"></param> public void Display(CustomCharts.Services.ChartController chartService, CustomNavigationPage navPage) { this._chartService = chartService; this._navPage = navPage; PopupNavigation.Instance.PushAsync(this); }