There is one difference in the iteration principle between the two solutions:
With For i = Panel1.NumberOfViews - 1To0Step -1 you will get only the views on Panel1, if there is a child panel on Panel1 the views on this child panel will not be considered.
With For Each v As View In Panel1.GetAllViewsRecursive they will.