Пример #1
0
        private void ClearPropertyChanged(BaseCellView nativeCell)
        {
            var formsCell = nativeCell.Cell as BaseCell;

            formsCell.PropertyChanged -= nativeCell.CellPropertyChanged;
            if (formsCell.Parent is App.Controls.BoxedView.BoxedView parentElement)
            {
                parentElement.PropertyChanged -= nativeCell.ParentPropertyChanged;
                if (formsCell.Section != null)
                {
                    formsCell.Section.PropertyChanged -= nativeCell.SectionPropertyChanged;
                }
            }
        }
Пример #2
0
        protected void SetUpPropertyChanged(BaseCellView nativeCell)
        {
            var formsCell = nativeCell.Cell as BaseCell;

            formsCell.PropertyChanged += nativeCell.CellPropertyChanged;
            if (formsCell.Parent is App.Controls.BoxedView.BoxedView parentElement)
            {
                parentElement.PropertyChanged += nativeCell.ParentPropertyChanged;
                var section = parentElement.Model.GetSection(BoxedModel.GetPath(formsCell).Item1);
                if (section != null)
                {
                    formsCell.Section = section;
                    formsCell.Section.PropertyChanged += nativeCell.SectionPropertyChanged;
                }
            }
        }