private void SourceValueChanged(object sender, MemberNodeChangeEventArgs e) { UpdateSourceFileWatcher(); TextureRegion.RefreshImageSize(); if (string.IsNullOrEmpty(e.OldValue?.ToString()) && e.NewValue != null && !ServiceProvider.Get <IUndoRedoService>().UndoRedoInProgress) { // If the source path was null or empty before, we set the texture to the whole image by default TextureRegion.UseWholeImage(); } }