예제 #1
0
        protected virtual void ClearPropertyChanged(ContentCellContainer nativeCell)
        {
            var formsCell     = nativeCell.ContentCell as ContentCell;
            var parentElement = formsCell.Parent as CollectionView;

            formsCell.PropertyChanged -= nativeCell.CellPropertyChanged;
            if (parentElement != null)
            {
                parentElement.PropertyChanged -= nativeCell.ParentPropertyChanged;
            }
        }
예제 #2
0
        public AView GetCell(ContentCell formsCell, ContentCellContainer nativeCell, Android.Views.ViewGroup parent, Context context)
        {
            Performance.Start(out string reference);

            if (nativeCell.ContentCell != null)
            {
                ClearPropertyChanged(nativeCell);
            }

            nativeCell.ContentCell = formsCell;

            SetUpPropertyChanged(nativeCell);

            nativeCell.UpdateNativeCell();

            Performance.Stop(reference);

            return(nativeCell);
        }