public void ResetViewModel()
{
_undoStack.Clear();
RaisePropertyChanged(() => CanUndo);
_redoStack.Clear();
RaisePropertyChanged(() => CanRedo);
Formula = null;
RaisePropertyChanged(() => CanDelete);
CaretIndex = 0;
SelectionStart = 0;
SelectionLength = 0;
}
}