/// <summary> /// Determines if the command can execute. /// </summary> /// <returns> /// Returns <see langword="true"/> if the element is not the last one in the collection. /// Otherwise, returns <see langword="false"/>. /// </returns> /// <param name="parameter">Not used</param> protected override bool InnerCanExecute(object parameter) { return(!collection.IsLast(element)); }