private void RefreshView() { MainView.Children.Clear(); if (Items == null) { return; } BindListener(); foreach (var item in Items) { var control = new CommentItem() { Source = item, }; control.ActionTapped += Control_ActionTapped; MainView.Children.Add(control); } }
private void Control_ActionTapped(CommentItem sender, ActionArgs <CommentBase> args) { ActionTapped?.Invoke(sender, args); }