public StopActivityPage(ManagerPage parent, Activity a, bool NextIsKnown) { InitializeComponent(); App.AddTitle(TitleLayout); ManagerP = parent; ThisActivity = a; LytIndicator.IsVisible = false; ActivityView aView = new ActivityView(ThisActivity); aView.AsListView(false); if (aView.ItemLayout.Children.Count < 1) { ButtonToQuit.IsVisible = true; } else { aView.OnAllInputItemsFilled += (s, e) => { ButtonToQuit.IsVisible = true; }; } LytActivity.Children.Add(aView); }
public void CreateActivityList() { // When activities are loaded foreach (Activity a in ListActivity) { // Show on screen ActivityView aView = new ActivityView(a); aView.AsListView(true); aView.OnFormHasFilled += OnStartingActivity; TapGestureRecognizer tapGestureRecognizer = new TapGestureRecognizer(); tapGestureRecognizer.Tapped += (s, e) => { UpdateForm(aView); }; aView.GestureRecognizers.Add(tapGestureRecognizer); Activities.Children.Add(aView); } }