public void DeleteSelected() { // // Delete selected node // // Get name of descendant var childName = OutsideSimulatorApp.GetInstance().SceneRootNode.Children.First((x) => x.Value == ClickedNode).Key; var removeAction = new Commands.Undoables.DeleteObject(childName); removeAction.Redo(); OutsideSimulatorApp.GetInstance().CommandStack.Push(removeAction); }