Name changes is now performed using UndoService. This also fixes that name changes was not always saved to xaml source.
rename should not be executed, if the name is not valid or the selection was changed