Пример #1
0
        public override void ViewDidAppear(bool animated)
        {
            base.ViewDidAppear(animated);

            CollectionViewTappedNotificaion = NSNotificationCenter.DefaultCenter.AddObserver(new NSString(Strings.InternalNotifications.notification_collection_view_tapped), (obj) =>
            {
                InvokeOnMainThread(() =>
                {
                    var indexPath = obj.Object as NSIndexPath;
                    if (indexPath == null)
                    {
                        return;
                    }

                    var card = TableSource.GetModelInList(indexPath);

                    var vc = new SharingViewController();
                    (vc.TargetViewController as SharingTableViewController).Shared.SelectedCard = card;
                    ApplicationExtensions.PushViewController(vc, true);
                });
            });
        }