コード例 #1
0
 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);
     }
 }
コード例 #2
0
 private void Control_ActionTapped(CommentItem sender, ActionArgs <CommentBase> args)
 {
     ActionTapped?.Invoke(sender, args);
 }