Exemplo n.º 1
0
        protected override bool CommitCellEdit(FrameworkElement editingElement)
        {
            SpreadsheetCell data = editingElement.DataContext as SpreadsheetCell;

            if (data != null)
            {
                data.UpdateAllDependentCells();

                var formula = data.Content;
                data.Tag.Calculate(formula, data.Table);
                data.Content = data.Tag.Value;

                data.UpdateAllConsequentialCells();
            }

            return(base.CommitCellEdit(editingElement));
        }